fix(deps): update all non-major pep621 dependencies #334
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.
This PR contains the following updates:
==1.17.1->==1.19.1==0.22.1->==0.23.1==9.0.1->==9.0.2==0.12.12->==0.14.10==2.32.4.20250809->==2.32.4.20250913Release Notes
python/mypy (mypy)
v1.19.1Compare Source
types.NoneTypein match cases (A5rocks, PR 20383)v1.19.0Compare Source
v1.18.2Compare Source
object.__init__(Stephen Morton, PR 19733)v1.18.1Compare Source
We’ve just uploaded mypy 1.18.1 to the Python Package Index (PyPI).
Mypy is a static type checker for Python. This release includes new features, performance
improvements and bug fixes. You can install it as follows:
You can read the full documentation for this release on Read the Docs.
Mypy Performance Improvements
Mypy 1.18.1 includes numerous performance improvements, resulting in about 40% speedup
compared to 1.17 when type checking mypy itself. In extreme cases, the improvement
can be 10x or higher. The list below is an overview of the various mypy optimizations.
Many mypyc improvements (discussed in a separate section below) also improve performance.
Type caching optimizations have a small risk of causing regressions. When
reporting issues with unexpected inferred types, please also check if
--disable-expression-cachewill work around the issue, as it turns off some ofthese optimizations.
Fixed‑Format Cache (Experimental)
Mypy now supports a new cache format used for faster incremental builds. It makes
incremental builds up to twice as fast. The feature is experimental and
currently only supported when using a compiled version of mypy. Use
--fixed-format-cacheto enable the new format, or
fixed_format_cache = Truein a configuration file.We plan to enable this by default in a future mypy release, and we'll eventually
deprecate and remove support for the original JSON-based format.
Unlike the JSON-based cache format, the new binary format is currently
not easy to parse and inspect by mypy users. We are planning to provide a tool to
convert fixed-format cache files to JSON, but details of the output JSON may be
different from the current JSON format. If you rely on being able to inspect
mypy cache files, we recommend creating a GitHub issue and explaining your use
case, so that we can more likely provide support for it. (Using
MypyFile.read(binary_data)to inspect cache data may be sufficient to supportsome use cases.)
This feature was contributed by Ivan Levkivskyi (PR 19668, 19735, 19750, 19681, 19752, 19815).
Flexible Variable Definitions: Update
Mypy 1.16.0 introduced
--allow-redefinition-new, which allows redefining variableswith different types, and inferring union types for variables from multiple assignments.
The feature is now documented in the
--helpoutput, but the feature is still experimental.We are planning to enable this by default in mypy 2.0, and we will also deprecate the
older
--allow-redefinitionflag. Since the new behavior differs significantly fromthe older flag, we encourage users of
--allow-redefinitionto experiment with--allow-redefinition-newand create a GitHub issue if the new functionality doesn'tsupport some important use cases.
This feature was contributed by Jukka Lehtosalo.
Inferred Type for Bare ClassVar
A ClassVar without an explicit type annotation now causes the type of the variable
to be inferred from the initializer:
This feature was contributed by Ivan Levkivskyi (PR 19573).
Disjoint Base Classes (@disjoint_base, PEP 800)
Mypy now understands disjoint bases (PEP 800): it recognizes the
@disjoint_basedecorator, and rejects class definitions that combine mutually incompatible base classes,
and takes advantage of the fact that such classes cannot exist in reachability and
narrowing logic.
This class definition will now generate an error:
prometheus/client_python (prometheus_client)
v0.23.1Compare Source
What's Changed
New Contributors
Full Changelog: prometheus/client_python@v0.23.0...v0.23.1
v0.23.0Compare Source
What's Changed
write_to_textfilefor custom tmpdir by @aadityadhruv in #1115New Contributors
Full Changelog: prometheus/client_python@v0.22.1...v0.23.0
pytest-dev/pytest (pytest)
v9.0.2Compare Source
pytest 9.0.2 (2025-12-06)
Bug fixes
#13896: The terminal progress feature added in pytest 9.0.0 has been disabled by default, except on Windows, due to compatibility issues with some terminal emulators.
You may enable it again by passing
-p terminalprogress. We may enable it by default again once compatibility improves in the future.Additionally, when the environment variable
TERMisdumb, the escape codes are no longer emitted, even if the plugin is enabled.#13904: Fixed the TOML type of the
tmp_path_retention_countsettings in the API reference from number to string.#13946: The private
config.inicfgattribute was changed in a breaking manner in pytest 9.0.0.Due to its usage in the ecosystem, it is now restored to working order using a compatibility shim.
It will be deprecated in pytest 9.1 and removed in pytest 10.
#13965: Fixed quadratic-time behavior when handling
unittestsubtests in Python 3.10.Improved documentation
pytest's command-line flags <command-line-flags>.astral-sh/ruff (ruff)
v0.14.10Compare Source
Released on 2025-12-18.
Preview features
flake8-implicit-str-concat] New rule to prevent implicit string concatenation in collections (ISC004) (#21972)flake8-use-pathlib] Make fixes unsafe when types change in compound statements (PTH104,PTH105,PTH109,PTH115) (#22009)refurb] Extend support forPath.open(FURB101,FURB103) (#21080)Bug fixes
pyupgrade] Fix parsing named Unicode escape sequences (UP032) (#21901)Rule changes
eradicate] Ignoreruff:disableandruff:enablecomments inERA001(#22038)flake8-pytest-style] Allowmatchandcheckkeyword arguments without an expected exception type (PT010) (#21964)Documentation
uvandtyto the Ruff README (#21996)setup.md(#22024)flake8-bandit] Fix broken link (S704) (#22039)Other changes
Contributors
v0.14.9Compare Source
Released on 2025-12-11.
Preview features
ruff] NewRUF100diagnostics for unused range suppressions (#21783)pylint] Detect subclasses of builtin exceptions (PLW0133) (#21382)Bug fixes
flake8-bandit] Fix false positive when using non-standardCSafeLoaderpath (S506). (#21830)flake8-bugbear] Accept immutable slice default arguments (B008) (#21823)Rule changes
pydocstyle] SuppressD417for parameters withUnpackannotations (#21816)Performance
memchrfor computing line indexes (#21838)Documentation
*.pywis included by default in preview (#21885)Contributors
v0.14.8Compare Source
Released on 2025-12-04.
Preview features
flake8-bugbear] Catchyieldexpressions within other statements (B901) (#21200)flake8-use-pathlib] Mark fixes unsafe for return type changes (PTH104,PTH105,PTH109,PTH115) (#21440)Bug fixes
awaitoutside functions (#21763)flake8-simplify] Fix truthiness assumption for non-iterable arguments in tuple/list/set calls (SIM222,SIM223) (#21479)Documentation
--output-fileoption in GitLab integration (#21706)Other changes
Contributors
v0.14.7Compare Source
Released on 2025-11-28.
Preview features
flake8-bandit] Handle string literal bindings in suspicious-url-open-usage (S310) (#21469)pylint] FixPLR1708false positives on nested functions (#21177)pylint] Fix suppression for empty dict without tuple key annotation (PLE1141) (#21290)ruff] Add ruleRUF066to detect unnecessary class properties (#21535)ruff] Catch more dummy variable uses (RUF052) (#19799)Bug fixes
flake8-implicit-str-concat] Avoid invalid fix in (ISC003) (#21517)parser] Fix panic when parsing IPython escape command expressions (#21480)CLI
Contributors
v0.14.6Compare Source
Released on 2025-11-21.
Preview features
flake8-bandit] Support new PySNMP API paths (S508,S509) (#21374)Bug fixes
fmt: skipfor compound statements on a single line (#20633)refurb] FixFURB103autofix (#21454)ruff] Fix false positive for complex conversion specifiers inlogging-eager-conversion(RUF065) (#21464)Rule changes
ruff] Avoid false positive onClassVarreassignment (RUF012) (#21478)CLI
ruff analyzeoption to skip over imports inTYPE_CHECKINGblocks (#21472)Documentation
eglot-formathook to eglot-managed Python buffers (#21459)force-excludein "Configuration > Python file discovery" (#21500)Contributors
v0.14.5Compare Source
Released on 2025-11-13.
Preview features
flake8-simplify] ApplySIM113when index variable is of typeint(#21395)pydoclint] Fix false positive when Sphinx directives follow a "Raises" section (DOC502) (#20535)pydoclint] Support NumPy-style comma-separated parameters (DOC102) (#20972)refurb] Auto-fix annotated assignments (FURB101) (#21278)ruff] Ignorestr()when not used for simple conversion (RUF065) (#21330)Bug fixes
matchpatterns (#21362)flake8-simplify] Fix false positive for iterable initializers with generator arguments (SIM222) (#21187)pyupgrade] Fix false positive on relative imports from local.builtinsmodule (UP029) (#21309)pyupgrade] Consistently set the deprecated tag (UP035) (#21396)Rule changes
refurb] Detect empty f-strings (FURB105) (#21348)CLI
--add-noqa(#21294)ruff linter --output-format=json(#21316)--help(#21337)Documentation
flake8-annotations] Add link toallow-star-arg-anyoption (ANN401) (#21326)Other changes
configuration] Improve error message whenline-lengthexceedsu16::MAX(#21329)Contributors
v0.14.4Compare Source
Released on 2025-11-06.
Preview features
matchpatterns withascaptures (#21176)refurb] Expand fix safety for keyword arguments andDecimals (FURB164) (#21259)refurb] Preserve argument ordering in autofix (FURB103) (#20790)Bug fixes
flake8-bugbear] Ignore non-NFKC attribute names inB009andB010(#21131)refurb] Fix false negative for underscores before sign inDecimalconstructor (FURB157) (#21190)ruff] Fix false positives on starred arguments (RUF057) (#21256)Rule changes
airflow] extend deprecated argumentconcurrencyinairflow..DAG(AIR301) (#21220)Documentation
extenddocs (#21135)flake8-comprehensions] Fix typo inC416documentation (#21184)Other changes
ruff analyze graphwork with jupyter notebooks (#21161)Contributors
v0.14.3Compare Source
Released on 2025-10-30.
Preview features
--output-formatwith--watch(#21097)pydoclint] Fix false positive on explicit exception re-raising (DOC501,DOC502) (#21011)pyflakes] Revert to stable behavior if imports for module lie in alternate branches forF401(#20878)pylint] Implementstop-iteration-return(PLR1708) (#20733)ruff] Add support for additional eager conversion patterns (RUF065) (#20657)Bug fixes
ISC001] Fix panic when string literals are unclosed (#21034)flake8-django] ApplyDJ001to annotated fields (#20907)flake8-pyi] FixPYI034to not trigger on metaclasses (PYI034) (#20881)flake8-type-checking] FixTC003false positive withfuture-annotations(#21125)pyflakes] Fix false positive for__class__in lambda expressions within class definitions (F821) (#20564)pyupgrade] Fix false positive forTypeVarwith default on Python <3.13 (UP046,UP047) (#21045)Rule changes
airflow] Extendairflow.models..Paramcheck (AIR311) (#21043)airflow] Warn thatairflow....DAG.create_dagrunhas been removed (AIR301) (#21093)refurb] Preserve digit separators inDecimalconstructor (FURB157) (#20588)Server
Documentation
flake8-bandit] Fix correct example forS308(#21128)Other changes
line-lengthgoes beyond threshold (#21072)Contributors
v0.14.2Compare Source
Released on 2025-10-23.
Preview features
flake8-gettext] Resolve qualified names and built-in bindings (INT001,INT002,INT003) (#19045)Bug fixes
fastapi] Handle ellipsis defaults inFAST002autofix (#20810)flake8-simplify] SkipSIM911when unknown arguments are present (#20697)pyupgrade] Always parenthesize assignment expressions in fix forf-string(UP032) (#21003)pyupgrade] FixUP032conversion for decimal ints with underscores (#21022)fastapi] Skip autofix for keyword and__debug__path params (FAST003) (#20960)Rule changes
flake8-bugbear] SkipB905andB912for fewer than two iterables and no starred arguments (#20998)ruff] UseDiagnosticTagfor morepyflakesandpandasrules (#20801)CLI
ruff rule(#20168)Documentation
Other changes
matchpatterns bind different names (#20682)Contributors
v0.14.1Compare Source
Released on 2025-10-16.
Preview features
flake8-bugbear] Omit annotation in preview fix forB006(#20877)flake8-logging-format] Avoid dropping implicitly concatenated pieces in theG004fix (#20793)pydoclint] Implementdocstring-extraneous-parameter(DOC102) (#20376)pyupgrade] ExtendUP019to detecttyping_extensions.Text(UP019) (#20825)pyupgrade] Fix false negative forTypeVarwith default argument innon-pep695-generic-class(UP046) (#20660)Bug fixes
Truthiness::from_exprfor lambdas, generators, and f-strings (#20704)fastapi] Fix false positives for path parameters that FastAPI doesn't recognize (FAST003) (#20687)flake8-pyi] Fix operator precedence by adding parentheses when needed (PYI061) (#20508)ruff] Suppress diagnostic for f-string interpolations with debug text (RUF010) (#20525)Rule changes
airflow] Add warning toairflow.datasets.DatasetEventusage (AIR301) (#20551)flake8-bugbear] MarkB905andB912fixes as unsafe (#20695)DiagnosticTagfor more rules - changes display in editors (#20758,#20734)Documentation
lint.flake8-type-checking.quoted-annotationsdocs (#20765)flake8-datetimez] Clarify docs for several rules (#20778)RUF015description (#20873)Other changes
Contributors
v0.14.0Compare Source
Released on 2025-10-07.
Breaking changes
Preview features
flake8-bugbear] Include certain guaranteed-mutable expressions: tuples, generators, and assignment expressions (B006) (#20024)refurb] Add fixes forFURB101andFURB103(#20520)ruff] ExtendFA102with listed PEP 585-compatible APIs (#20659)Bug fixes
flake8-annotations] Fix return type annotations to handle shadowed builtin symbols (ANN201,ANN202,ANN204,ANN205,ANN206) (#20612)flynt] Fix f-string quoting for mixed quote joiners (FLY002) (#20662)isort] Fix inserting required imports before future imports (I002) (#20676)ruff] Handle argfile expansion errors gracefully (#20691)ruff] SkipRUF051ifelse/elifblock is present (#20705)ruff] Improve handling of intermixed comments inside from-imports (#20561)Documentation
flake8-comprehensions] Clarify fix safety documentation (C413) (#20640)Contributors
v0.13.3Compare Source
Release Notes
Released on 2025-10-02.
Preview features
ruff format --checkand add support for different output formats (#20443)pyflakes] Handle some common submodule import situations forunused-import(F401) (#20200)ruff] Do not flag%r+repr()combinations (RUF065) (#20600)Bug fixes
cli] Add conflict between--add-noqaand--diffoptions (#20642)pylint] Exempt required imports fromPLR0402(#20381)pylint] Fix missingmax-nested-blocksin settings display (#20574)pyupgrade] Prevent infinite loop withI002andUP026(#20634)Rule changes
flake8-simplify] Improve help message clarity (SIM105) (#20548)Documentation
isort] Clarify dependency betweenorder-by-typeandcase-sensitivesettings (#20559)pylint] Clarify fix safety to include left-hand hashability (PLR6201) (#20518)Other changes
playground] Fix quick fixes for empty ranges in playground (#20599)Contributors
Install ruff 0.13.3
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-installer.ps1 | iex"Download ruff 0.13.3