Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run mypy on all files including tests #142

Merged
merged 1 commit into from
Jun 12, 2022
Merged

Run mypy on all files including tests #142

merged 1 commit into from
Jun 12, 2022

Conversation

jdufresne
Copy link
Contributor

Running mypy on test files helps to ensure the tests are representative
by using correct types for APIs. It also could help to expose mistakes
in tests with improper use of values.

@codecov
Copy link

codecov bot commented Jun 12, 2022

Codecov Report

Merging #142 (77edfc2) into master (d07ad04) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #142   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          544       546    +2     
  Branches        67        67           
=========================================
+ Hits           544       546    +2     
Impacted Files Coverage Δ
tests/test_core.py 100.00% <100.00%> (ø)
tests/test_db.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d07ad04...77edfc2. Read the comment docs.

@ofek
Copy link
Owner

ofek commented Jun 12, 2022

Hey sorry, mind rebasing?

Running mypy on test files helps to ensure the tests are representative
by using correct types for APIs. It also could help to expose mistakes
in tests with improper use of values.
@jdufresne
Copy link
Contributor Author

No problem. Done in latest revision.

Copy link
Owner

@ofek ofek left a comment

Choose a reason for hiding this comment

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

Thanks!

@ofek ofek merged commit d849cdf into ofek:master Jun 12, 2022
@jdufresne jdufresne deleted the mypy-tests branch June 12, 2022 16:50
REestwick pushed a commit to REestwick/pypinfo that referenced this pull request Apr 1, 2024
Running mypy on test files helps to ensure the tests are representative
by using correct types for APIs. It also could help to expose mistakes
in tests with improper use of values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants