-
-
Notifications
You must be signed in to change notification settings - Fork 0
⬆️ deps: Update dependencies and drop python 3.8 and 3.9 support, use abi310 #58
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
Conversation
155cb2b to
d5f5b9a
Compare
eb4891b to
aa6e98b
Compare
aa6e98b to
0639931
Compare
0639931 to
d9230be
Compare
d9230be to
a0a220b
Compare
a0a220b to
aa2d7b6
Compare
aa2d7b6 to
ba83441
Compare
ba83441 to
c91c792
Compare
c91c792 to
1fd94f4
Compare
1fd94f4 to
032a5e2
Compare
032a5e2 to
705cce5
Compare
66978c4 to
dc3015e
Compare
b6ac5c3 to
4ac2b3c
Compare
|
4ac2b3c to
8b01da0
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot].This notice will be removed on 2025-10-07.
This PR contains the following updates:
0.25.0->0.26.0==0.11.13->==0.13.2Release Notes
pyo3/pyo3 (pyo3)
v0.26.0Compare Source
Packaging
bytesdependency to add conversions forbytes::Bytes. #5252pyo3-introspectionto pair with theexperimental-inspectfeature. #5300PYO3_BUILD_EXTENSION_MODULEnow causes the same effect as theextension-modulefeature. Eventually we expect maturin and setuptools-rust to set this environment variable automatically. Users with their own build systems will need to do the same. #5343Added
#[pyo3(warn(message = "...", category = ...))]attribute for automatic warnings generation for#[pyfunction]and#[pymethods]. #4364PyMutex, available on Python 3.13 and newer. #4523PyMutex_IsLocked, available on Python 3.14 and newer. #4523PyString::from_encoded_object. #5017experimental-inspect: add basic input type annotations. #5089PyFrameObjectfrom CPython 3.13. #5154experimental-inspect: tag modules created using#[pymodule]or#[pymodule_init]functions as incomplete. #5207experimental-inspect: add basic return type support. #5208PyCode::compileandPyCodeMethods::runto create and execute code objects. #5217PyOnceLocktype for thread-safe single-initialization. #5223PyClassGuard(Mut)pyclass holders. In the future they will replacePyRef(Mut). #5233experimental-inspect: allow annotations in#[pyo3(signature)]signature attribute. #5241MutexExtfor parking_lot's/lock_apiReentrantMutex. #5258experimental-inspect: support class associated constants. #5272Bound::castfamily of functions superseding thePyAnyMethods::downcastfamily. #5289Py_VersionandPy_IsFinalizing. #5317experimental-inspect: add output type annotation for#[pyclass]. #5320experimental-inspect: support#[pyclass(eq, eq_int, ord, hash, str)]. #5338experimental-inspect: add basic support for#[derive(FromPyObject)](no struct fields support yet). #5339Python::try_attach. #5342Changed
Py_TPFLAGS_DISALLOW_INSTANTIATIONinstead of a__new__which always fails for a#[pyclass]without a#[new]on Python 3.10 and up. #4568PyModule::from_codenow defaultsfile_nameto<string>if empty. #4777PyString::from_objectin favour ofPyString::from_encoded_object. #5017abi3for a Python version newer than pyo3 supports, automatically fall back to an abi3 build for the latest supported version. #5144is_instance_oftrait bound fromPyTypeInfotoPyTypeCheck. #5146MutexExtreturn type to be an associated type. #5201PyCallArgsforPy::calland friends so they're equivalent to theirBoundcounterpart. #5206Python::with_giltoPython::attach. #5209Python::allow_threadstoPython::detach#5221GILOnceCelltype in favour ofPyOnceLock. #5223pyo3::prepare_freethreaded_pythontoPython::initialize. #5247PyMemoryErrorinto/fromio::ErrorKind::OutOfMemory. #5256GILProtected. #5285#[pyclass]docstring formatting from import time to compile time. #5286Python::attachwill now panic if the Python interpreter is in the process of shutting down. #5317PyTypeInfo::type_objectfor#[pyclass]types. #5324PyObjecttype alias forPy<PyAny>. #5325Python::with_gil_uncheckedtoPython::attach_unchecked. #5340Python::assume_gil_acquiredtoPython::assume_attached. #5354Removed
PyFrameObject. #5154EqandPartialEqimplementations onPyGetSetDefFFI definition. #5196_Py_IsCoreInitializedand_Py_InitializeMain. #5317Fixed
PyByteArray::to_vecon freethreaded build to replicate GIL-enabled "soundness". #4742bigdecimalinto Python. #5198PyBuffer<T>after the Python interpreter has been finalized. #5242experimental-inspect: better automated imports generation. #5251experimental-inspect: fix introspection of__richcmp__,__concat__,__repeat__,__inplace_concat__and__inplace_repeat__. #5273PyRef::into_super#5281Py_Exit(never returns, was()return value, now!). #5317experimental-inspect: fix handling of module members gated behind#[cfg(...)]attributes. #5318astral-sh/ruff (ruff)
v0.13.2Compare Source
Released on 2025-09-25.
Preview features
flake8-async] Implementblocking-path-method(ASYNC240) (#20264)flake8-bugbear] Implementmap-without-explicit-strict(B912) (#20429)flake8-bultins] Detect class-scope builtin shadowing in decorators, default args, and attribute initializers (A003) (#20178)ruff] Implementlogging-eager-conversion(RUF065) (#19942).pywfiles by default when linting and formatting (#20458)Bug fixes
flake8-comprehensions] Preserve trailing commas for single-element lists (C409) (#19571)flake8-pyi] Avoid syntax error from conflict withPIE790(PYI021) (#20010)flake8-simplify] Correct fix for positivemaxsplitwithout separator (SIM905) (#20056)pyupgrade] FixUP008not to apply when__class__is a local variable (#20497)ruff] FixB004to skip invalidhasattr/getattrcalls (#20486)ruff] Replace-nanwithnanwhen using the value to construct aDecimal(FURB164) (#20391)Documentation
ruff-wasm-web(#20539)flake8-bandit] Clarify the supported hashing functions (S324) (#20534)Other changes
playground] Allow hover quick fixes to appear for overlapping diagnostics (#20527)playground] Fix non‑BMP code point handling in quick fixes and markers (#20526)Contributors
v0.13.1Compare Source
Released on 2025-09-18.
Preview features
flake8-simplify] Detect unnecessaryNonedefault for additional key expression types (SIM910) (#20343)flake8-use-pathlib] Add fix forPTH123(#20169)flake8-use-pathlib] FixPTH101,PTH104,PTH105,PTH121fixes (#20143)flake8-use-pathlib] MakePTH111fix unsafe because it can change behavior (#20215)pycodestyle] FixE301to only trigger for functions immediately within a class (#19768)refurb] Marksingle-item-membership-testfix as always unsafe (FURB171) (#20279)Bug fixes
flake8-bandit] Fix truthiness: dict-only**displays not truthy forshell(S602,S604,S609) (#20177)flake8-simplify] Fix diagnostic to show correct method name forstr.rsplitcalls (SIM905) (#20459)flynt] Use triple quotes for joined raw strings with newlines (FLY002) (#20197)pyupgrade] Fix false positive when class name is shadowed by local variable (UP008) (#20427)pyupgrade] Prevent infinite loop withI002andUP026(#20327)ruff] Recognize t-strings, generators, and lambdas ininvalid-index-type(RUF016) (#20213)Rule changes
RUF102] Respect rule redirects in invalid rule code detection (#20245)flake8-bugbear] Mark the fix forunreliable-callable-checkas always unsafe (B004) (#20318)ruff] Allow dataclass attribute value instantiation from nested frozen dataclass (RUF009) (#20352)CLI
output-format=sarif(#20300)Documentation
ruff] Addanalyze.string-imports-min-dotsto settings (#20375)Other changes
Contributors
v0.13.0Compare Source
Check out the blog post for a migration
guide and overview of the changes!
Breaking changes
Several rules can now add
from __future__ import annotationsautomaticallyTC001,TC002,TC003,RUF013, andUP037now addfrom __future__ import annotationsas part of their fixes when thelint.future-annotationssetting is enabled. This allows the rules to movemore imports into
TYPE_CHECKINGblocks (TC001,TC002, andTC003),use PEP 604 union syntax on Python versions before 3.10 (
RUF013), andunquote more annotations (
UP037).Full module paths are now used to verify first-party modules
Ruff now checks that the full path to a module exists on disk before
categorizing it as a first-party import. This change makes first-party
import detection more accurate, helping to avoid false positives on local
directories with the same name as a third-party dependency, for example. See
the FAQ
section on import categorization for more details.
Deprecated rules must now be selected by exact rule code
Ruff will no longer activate deprecated rules selected by their group name
or prefix. As noted below, the two remaining deprecated rules were also
removed in this release, so this won't affect any current rules, but it will
still affect any deprecations in the future.
The deprecated macOS configuration directory fallback has been removed
Ruff will no longer look for a user-level configuration file at
~/Library/Application Support/ruff/ruff.tomlon macOS. This feature wasdeprecated in v0.5 in favor of using the XDG
specification
(usually resolving to
~/.config/ruff/ruff.toml), like on Linux. Thefallback and accompanying deprecation warning have now been removed.
Removed Rules
The following rules have been removed:
pandas-df-variable-name(PD901)non-pep604-isinstance(UP038)Stabilization
The following rules have been stabilized and are no longer in preview:
airflow-dag-no-schedule-argument(
AIR002)airflow3-removal(AIR301)airflow3-moved-to-provider(
AIR302)airflow3-suggested-update(
AIR311)airflow3-suggested-to-move-to-provider(
AIR312)long-sleep-not-forever(ASYNC116)f-string-number-format(FURB116)os-symlink(PTH211)generic-not-last-base-class(
PYI059)redundant-none-literal(PYI061)pytest-raises-ambiguous-pattern(
RUF043)unused-unpacked-variable(
RUF059)useless-class-metaclass-type(
UP050)The following behaviors have been stabilized:
assert-raises-exception(B017)now checks for direct calls to
unittest.TestCase.assert_raisesandpytest.raisesinstead ofonly the context manager forms.
missing-trailing-comma(COM812)and
prohibited-trailing-comma(
COM819) now check for trailing commas in PEP 695 type parameter lists.raw-string-in-exception(EM101)now also checks for byte strings in exception messages.
invalid-mock-access(PGH005) nowchecks for
AsyncMockmethods likenot_awaitedin addition to the synchronous variants.useless-import-alias(PLC0414) nolonger applies to
__init__.pyfiles, where it conflicted with one of the suggested fixes forunused-import(F401).bidirectional-unicode(PLE2502) nowalso checks for U+061C (Arabic Letter Mark).
multiple-with-statements(
SIM117) is now marked as always safe.Preview features
pyupgrade] EnableUP043in stub files (#20027)Bug fixes
pyupgrade] ApplyUP008only when the__class__cell exists (#19424)ruff] Fix empty f-string detection inin-empty-collection(RUF060) (#20249)Server
Documentation
pep8-naming] Fix formatting of__all__(N816) (#20301)v0.12.12Compare Source
Release Notes
Preview features
airflow] ConvertDatasetOrTimeSchedule(datasets=...)toAssetOrTimeSchedule(assets=...)(AIR311) (#20202)airflow] Improve theAIR002error message (#20173)airflow] Moveairflow.operators.postgres_operator.MappingfromAIR302toAIR301(#20172)flake8-async] Implementblocking-inputrule (ASYNC250) (#20122)flake8-use-pathlib] MakePTH119andPTH120fixes unsafe because they can change behavior (#20118)pylint] Add U+061C toPLE2502(#20106)ruff] Fix false negative for empty f-strings indequecalls (RUF037) (#20109)Bug fixes
fastapi] Fix false positive for paths with spaces around parameters (FAST003) (#20077)flake8-comprehensions] SkipC417when lambda containsyield/yield from(#20201)perflint] Handle tuples in dictionary comprehensions (PERF403) (#19934)Rule changes
pycodestyle] Preserve return type annotation forParamSpec(E731) (#20108)Documentation
Contributors
Install ruff 0.12.12
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.12.12/ruff-installer.ps1 | iex"Download ruff 0.12.12
v0.12.11Compare Source
Release Notes
Preview features
airflow] ExtendAIR311andAIR312rules (#20082)airflow] Replace wrong pathairflow.io.storagewithairflow.io.store(AIR311) (#20081)flake8-async] Implementblocking-http-call-httpx-in-async-function(ASYNC212) (#20091)flake8-logging-format] Add auto-fix for f-string logging calls (G004) (#19303)flake8-use-pathlib] Add autofix forPTH211(#20009)flake8-use-pathlib] MakePTH100fix unsafe because it can change behavior (#20100)Bug fixes
pyflakes,pylint] Fix false positives caused by__class__cell handling (F841,PLE0117) (#20048)pyflakes] Fixallowed-unused-importsmatching for top-level modules (F401) (#20115)ruff] Fix false positive for t-strings indefault-factory-kwarg(RUF026) (#20032)ruff] Preserve relative whitespace in multi-line expressions (RUF033) (#19647)Rule changes
ruff] Handle empty t-strings inunnecessary-empty-iterable-within-deque-call(RUF037) (#20045)Documentation
D413links in docstrings convention FAQ (#20089)flake8-use-pathlib] Update links to the table showing the correspondence betweenosandpathlib(#20103)Contributors
Install ruff 0.12.11
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.12.11/ruff-installer.ps1 | iex"Download ruff 0.12.11
v0.12.10Compare Source
Release Notes
Preview features
flake8-simplify] Implement fix formaxsplitwithout separator (SIM905) (#19851)flake8-use-pathlib] Add fixes forPTH102andPTH103(#19514)Bug fixes
isort] Handle multiple continuation lines after module docstring (I002) (#19818)pyupgrade] Avoid reporting__future__features as unnecessary when they are used (UP010) (#19769)pyupgrade] Handle nestedOptionals (UP045) (#19770)Rule changes
pycodestyle] MakeE731fix unsafe instead of display-only for class assignments (#19700)pyflakes] Add secondary annotation showing previous definition (F811) (#19900)Documentation
flake8-annotations] Remove unused import in example (ANN401) (#20000)Contributors
Install ruff 0.12.10
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.12.10/ruff-installer.ps1 | iex"Download ruff 0.12.10
v0.12.9Compare Source
Release Notes
Preview features
airflow] Add check forairflow.secrets.cache.SecretCache(AIR301) (#17707)ruff] Offer a safe fix for multi-digit zeros (RUF064) (#19847)Bug fixes
flake8-blind-except] FixBLE001false-positive onraise ... from None(#19755)flake8-comprehensions] Fix false positive forC420with attribute, subscript, or slice assignment targets (#19513)flake8-simplify] Fix handling of U+001C..U+001F whitespace (SIM905) (#19849)Rule changes
pylint] Use lowercase hex characters to match the formatter (PLE2513) (#19808)Documentation
lint.future-annotationslink (#19876)Other changes
Build
riscv64binaries for release (#19819)Add rule code to error description in GitLab output (#19896)
Improve rendering of the
fulloutput format (#19415)Below is an example diff for
F401: