Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Add mypy for type checking #25

Merged
merged 1 commit into from
Feb 14, 2023
Merged

Add mypy for type checking #25

merged 1 commit into from
Feb 14, 2023

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Feb 14, 2023

Add mypy and two type stub packages to the dependencies and configure mypy via pyproject.toml. For now it's configured in the default, more relaxed, mode; we can strengthen it later.

Fixes #6.

Add mypy and two type stub packages to the dependencies and
configure mypy via pyproject.toml. For now it's configured
in the default, more relaxed, mode; we can strengthen it later.

Fixes #6.
@legoktm
Copy link
Member Author

legoktm commented Feb 14, 2023

Originally I suggested we should wait until the migration stuff lands, but I locally rebased it on top of this and it still passes mypy, so it shouldn't get in the way.

@legoktm
Copy link
Member Author

legoktm commented Feb 14, 2023

tests/test_updaterapp.py::test_netcheck_no_network_should_fail Fatal Python error: Aborted

☹️

Edit: re-ran, now passes.

Copy link
Contributor

@eaon eaon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thank you!

@eaon eaon merged commit 4b569af into main Feb 14, 2023
@eaon eaon deleted the mypy branch February 14, 2023 18:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mypy type checker
2 participants