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

Tune mypy strictness settings #675

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Tune mypy strictness settings #675

merged 1 commit into from
Sep 9, 2024

Conversation

Swatinem
Copy link
Contributor

@Swatinem Swatinem commented Sep 3, 2024

In particular, this does not require files to be fully typed anymore.

I also added a couple of TODOs for checks we would want to eventually enable.


I now end up with the following, which on the surface looks quite bad:

Found 614 errors in 113 files (checked 240 source files)

There is quite some errors related to untyped imports. shared can be resolved by adding a py.typed file I guess.
Other dependencies would probably require typing stubs to be installed?

Then there is a ton of errors which look legit and should be fixed.

Otherwise this hits the limits of "I am not a python developer" :-D

@Swatinem Swatinem self-assigned this Sep 3, 2024
@codecov-notifications
Copy link

codecov-notifications bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #675   +/-   ##
=======================================
  Coverage   98.08%   98.08%           
=======================================
  Files         433      433           
  Lines       36742    36742           
=======================================
  Hits        36040    36040           
  Misses        702      702           
Flag Coverage Δ
integration 98.08% <100.00%> (ø)
latest-uploader-overall 98.08% <100.00%> (ø)
unit 98.08% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.99% <ø> (ø)
OutsideTasks 98.09% <100.00%> (ø)
Files Coverage Δ
helpers/tests/pathmap/test_pathmap.py 100.00% <100.00%> (ø)
services/failure_normalizer.py 100.00% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 100.00% <ø> (ø)
services/report/languages/tests/unit/test_vb.py 100.00% <100.00%> (ø)

@codecov-qa
Copy link

codecov-qa bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.08%. Comparing base (5409f26) to head (0bd6afd).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #675   +/-   ##
=======================================
  Coverage   98.08%   98.08%           
=======================================
  Files         433      433           
  Lines       36742    36742           
=======================================
  Hits        36040    36040           
  Misses        702      702           
Flag Coverage Δ
integration 98.08% <100.00%> (ø)
latest-uploader-overall 98.08% <100.00%> (ø)
unit 98.08% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.99% <ø> (ø)
OutsideTasks 98.09% <100.00%> (ø)
Files with missing lines Coverage Δ
helpers/tests/pathmap/test_pathmap.py 100.00% <100.00%> (ø)
services/failure_normalizer.py 100.00% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 100.00% <ø> (ø)
services/report/languages/tests/unit/test_vb.py 100.00% <100.00%> (ø)

Copy link

codecov-public-qa bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.08%. Comparing base (5409f26) to head (0bd6afd).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #675   +/-   ##
=======================================
  Coverage   98.08%   98.08%           
=======================================
  Files         433      433           
  Lines       36742    36742           
=======================================
  Hits        36040    36040           
  Misses        702      702           
Flag Coverage Δ
integration 98.08% <100.00%> (ø)
latest-uploader-overall 98.08% <100.00%> (ø)
unit 98.08% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.99% <ø> (ø)
OutsideTasks 98.09% <100.00%> (ø)
Files Coverage Δ
helpers/tests/pathmap/test_pathmap.py 100.00% <100.00%> (ø)
services/failure_normalizer.py 100.00% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 100.00% <ø> (ø)
services/report/languages/tests/unit/test_vb.py 100.00% <100.00%> (ø)

Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.13%. Comparing base (5409f26) to head (0bd6afd).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #675   +/-   ##
=======================================
  Coverage   98.13%   98.13%           
=======================================
  Files         475      475           
  Lines       38097    38097           
=======================================
  Hits        37385    37385           
  Misses        712      712           
Flag Coverage Δ
integration 98.08% <100.00%> (ø)
latest-uploader-overall 98.08% <100.00%> (ø)
unit 98.08% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 96.09% <ø> (ø)
OutsideTasks 98.09% <100.00%> (ø)
Files with missing lines Coverage Δ
helpers/tests/pathmap/test_pathmap.py 100.00% <100.00%> (ø)
services/failure_normalizer.py 100.00% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 100.00% <ø> (ø)
services/report/languages/tests/unit/test_vb.py 100.00% <100.00%> (ø)

This change has been scanned for critical changes. Learn more

In particular, this does not require files to be fully typed anymore.

I also added a couple of TODOs for checks we would want to eventually enable.
@Swatinem Swatinem marked this pull request as ready for review September 9, 2024 08:53
@Swatinem Swatinem requested a review from a team September 9, 2024 08:53
Copy link
Contributor

@giovanni-guidini giovanni-guidini left a comment

Choose a reason for hiding this comment

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

nice 👍

@Swatinem Swatinem added this pull request to the merge queue Sep 9, 2024
Merged via the queue into main with commit 728c825 Sep 9, 2024
26 of 27 checks passed
@Swatinem Swatinem deleted the swatinem/mypy branch September 9, 2024 12:45
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