-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updated mypy
and pytest-mypy
#304
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #304 +/- ##
========================================
Coverage 97.03% 97.03%
========================================
Files 51 51
Lines 2293 2293
========================================
Hits 2225 2225
Misses 68 68 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Made this a draft as the newest version of |
Updating |
What is the issue with the constants registry? |
This was the error message Previously, CONSTANTS_REGISTRY: dict[str, dict[str, Callable]] = {} But now it infers that the type of the object added to the constants registry is |
I think upgrading One other thing you could do is telling |
@alexdewar given we are using Is it worth working out how to exclude |
@jacobcook1995 Ah, well if that's the case, then that won't be why you're seeing slowdowns. Not sure why that is. It might be worth seeing if someone's raised an issue in the (I actually do have a |
I don't think we're in general using |
Superseded by changes in #323 |
Description
On my local setup (macOS python 3.11) the
mypy
part of the unit testing takes ages to run. When I deleted themypy
cache files the unit test took 87.84s to run. When I updatedmypy
andpytest-mypy
this same test dropped to 25ish seconds.I felt like this was a big enough change to be worth updating the dependancies for (even if it only affected my setup), provided that others agree.
Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks