Update ruff requirement from <0.10,>=0.9 to >=0.9,<0.12
Updates the requirements on ruff to permit the latest version.
Release notes
Sourced from ruff's releases.
0.11.2
Release Notes
Preview features
- [syntax-errors] Fix false-positive syntax errors emitted for annotations on variadic parameters before Python 3.11 (#16878)
Contributors
Install ruff 0.11.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-installer.ps1 | iex"Download ruff 0.11.2
File Platform Checksum ruff-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum ruff-x86_64-apple-darwin.tar.gz Intel macOS checksum ruff-aarch64-pc-windows-msvc.zip ARM64 Windows checksum ruff-i686-pc-windows-msvc.zip x86 Windows checksum ruff-x86_64-pc-windows-msvc.zip x64 Windows checksum ruff-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum ruff-i686-unknown-linux-gnu.tar.gz x86 Linux checksum ruff-powerpc64-unknown-linux-gnu.tar.gz PPC64 Linux checksum ruff-powerpc64le-unknown-linux-gnu.tar.gz PPC64LE Linux checksum ruff-s390x-unknown-linux-gnu.tar.gz S390x Linux checksum ruff-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum ruff-armv7-unknown-linux-gnueabihf.tar.gz ARMv7 Linux checksum ruff-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum ruff-i686-unknown-linux-musl.tar.gz x86 MUSL Linux checksum ruff-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum ruff-arm-unknown-linux-musleabihf.tar.gz ARMv6 MUSL Linux (Hardfloat) checksum
... (truncated)
Changelog
Sourced from ruff's changelog.
0.11.2
Preview features
- [syntax-errors] Fix false-positive syntax errors emitted for annotations on variadic parameters before Python 3.11 (#16878)
0.11.1
Preview features
- [
airflow] Addchain,chain_linearandcross_downstreamforAIR302(#16647)- [syntax-errors] Improve error message and range for pre-PEP-614 decorator syntax errors (#16581)
- [syntax-errors] PEP 701 f-strings before Python 3.12 (#16543)
- [syntax-errors] Parenthesized context managers before Python 3.9 (#16523)
- [syntax-errors] Star annotations before Python 3.11 (#16545)
- [syntax-errors] Star expression in index before Python 3.11 (#16544)
- [syntax-errors] Unparenthesized assignment expressions in sets and indexes (#16404)
Bug fixes
- Server: Allow
FixAllaction in presence of version-specific syntax errors (#16848)- [
flake8-bandit] Allow raw strings insuspicious-mark-safe-usage(S308) #16702 (#16770)- [
refurb] Avoid panickingunwrapinverbose-decimal-constructor(FURB157) (#16777)- [
refurb] Fix starred expressions fix (FURB161) (#16550)- Fix
--statisticsreporting for unsafe fixes (#16756)Rule changes
- [
flake8-executables] Allowuv runin shebang line forshebang-missing-python(EXE003) (#16849,#16855)CLI
- Add
--exit-non-zero-on-format(#16009)Documentation
- Update Ruff tutorial to avoid non-existent fix in
__init__.py(#16818)- [
flake8-gettext] Swapformat-andprintf-in-get-text-func-callexamples (INT002,INT003) (#16769)0.11.0
This is a follow-up to release 0.10.0. Because of a mistake in the release process, the
requires-pythoninference changes were not included in that release. Ruff 0.11.0 now includes this change as well as the stabilization of the preview behavior forPGH004.Breaking changes
Changes to how the Python version is inferred when a
target-versionis not specified (#16319)In previous versions of Ruff, you could specify your Python version with:
- The
target-versionoption in aruff.tomlfile or the[tool.ruff]section of a pyproject.toml file.
... (truncated)
Commits
4773878Bump 0.11.2 (#16896)2a4d835Use the commonOperatorPrecedencefor the parser (#16747)04a8756[red-knot] Check subtype relation between callable types (#16804)193c381[red-knot] Check whether two callable types are equivalent (#16698)63e78b4[red-knot] Ban mostType::Instancetypes in type expressions (#16872)296d67aSpecial-case value-expression inference of special form subscriptions (#16877)42cbce5[syntax-errors] Fix star annotation before Python 3.11 (#16878)6760251RecognizeSyntaxError:as an error code for ecosystem checks (#16879)23382f5[red-knot] add test cases result in false positive errors (#16856)c1971fdBump 0.11.1 (#16871)- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.