build: support python 3.14, drop 3.9#290
Open
tlambert03 wants to merge 5 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #290 +/- ##
=======================================
Coverage 95.62% 95.62%
=======================================
Files 24 24
Lines 1120 1120
=======================================
Hits 1071 1071
Misses 49 49 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
https://github.com/PyCQA/docformatter was released which should unblock this! |
| [tool.pytest.ini_options] | ||
| minversion = "6.0" | ||
| testpaths = ["tests"] | ||
| addopts = '--mypy-only-local-stub --color=yes' |
There was a problem hiding this comment.
Suggested change
| addopts = '--color=yes' |
I think this needs to be removed due to 4.0.0 of pytest-mypy-plugins.
Breaking changes:
- Breaking: Errors are now ignored in site-packages by default. The
--mypy-only-local-stubflag
has been removed and replaced with--mypy-no-silence-site-packageswhich can be used to restore
the previous behavior if needed. This change was made to avoid errors being raised when enabling
certain mypy options, e.g. theexplicit-overrideerror code or the--disallow-subclassing-any
flag, which resulted in violations due to these not being supported with the stubs provided by
typeshed for the standard library. In addition, this affected other error codes or flags for some
third-party libraries in django-stubs.- Breaking: When running in a subprocess (the default),
PYTHONPATHis no longer set. With the
above change, violations would still be raised in the main module for a test case, but those that
were flagged in imported modules would no longer be raised. This was because these modules were
being added toPYTHONPATHwhich caused mypy to treat them as belonging in site-packages and not
as part of the first-party package. The new--mypy-modify-pythonpathflag can be used to revert
to the previous behavior if needed.
Looks like mypy-only-local-stub can just be removed.
And since here we drop 3.9 support, then can bump the minimum pytest-mypy-plugins to 4.
| "numpy >=2.1; python_version >= '3.13'", | ||
| "pytest-codspeed >=2.4.0", | ||
| "pytest-cov >=4.0.0", | ||
| "pytest-mypy-plugins >=3.0.0", |
There was a problem hiding this comment.
Suggested change
| "pytest-mypy-plugins >=4.0.0", |
See comment below.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.