Bump ruff from 0.5.0 to 0.5.4
Bumps ruff from 0.5.0 to 0.5.4.
Release notes
Sourced from ruff's releases.
0.5.4
Release Notes
Rule changes
- [
ruff
] RenameRUF007
tozip-instead-of-pairwise
(#12399)Bug fixes
- [
flake8-builtins
] Avoid shadowing diagnostics for@override
methods (#12415)- [
flake8-comprehensions
] Insert parentheses for multi-argument generators (#12422)- [
pydocstyle
] Handle escaped docstrings within docstring (D301
) (#12192)Documentation
Install ruff 0.5.4
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-installer.ps1 | iex"
Download ruff 0.5.4
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
... (truncated)
Changelog
Sourced from ruff's changelog.
0.5.4
Rule changes
- [
ruff
] RenameRUF007
tozip-instead-of-pairwise
(#12399)Bug fixes
- [
flake8-builtins
] Avoid shadowing diagnostics for@override
methods (#12415)- [
flake8-comprehensions
] Insert parentheses for multi-argument generators (#12422)- [
pydocstyle
] Handle escaped docstrings within docstring (D301
) (#12192)Documentation
0.5.3
Ruff 0.5.3 marks the stable release of the Ruff language server and introduces revamped documentation, including setup guides for your editor of choice and the language server itself.
Preview features
- Formatter: Insert empty line between suite and alternative branch after function/class definition (#12294)
- [
pyupgrade
] Implementunnecessary-default-type-args
(UP043
) (#12371)Rule changes
- [
flake8-bugbear
] Detect enumerate iterations inloop-iterator-mutation
(B909
) (#12366)- [
flake8-bugbear
] Removediscard
,remove
, andpop
allowance forloop-iterator-mutation
(B909
) (#12365)- [
pylint
] Allowrepeated-equality-comparison
for mixed operations (PLR1714
) (#12369)- [
pylint
] Ignoreself
andcls
when counting arguments (PLR0913
) (#12367)- [
pylint
] Use UTF-8 as default encoding inunspecified-encoding
fix (PLW1514
) (#12370)Server
- Build settings index in parallel for the native server (#12299)
- Use fallback settings when indexing the project (#12362)
- Consider
--preview
flag forserver
subcommand for the linter and formatter (#12208)Bug fixes
- [
flake8-comprehensions
] Allow additional arguments forsum
andmax
comprehensions (C419
) (#12364)- [
pylint
] Avoid dropping extra boolean operations inrepeated-equality-comparison
(PLR1714
) (#12368)- [
pylint
] Consider expression before statement when determining binding kind (PLR1704
) (#12346)Documentation
... (truncated)
Commits
-
53b84ab
Cleanup redundant spaces from changelog (#12424) -
3664f85
Bump version to v0.5.4 (#12423) -
2c1926b
Insert parentheses for multi-argument generators (#12422) -
4bcc96a
Avoid shadowing diagnostics for@override
methods (#12415) -
c0a2b49
Fix the Github link error for Neovim in the setup for editors in the docs. (#... -
ca22248
Update docs Settings output-format default (#12409) -
d8cf8ac
[red-knot] Resolve symbols frombuiltins.pyi
in the stdlib if they cannot b... -
1c7b840
[red-knot] fix incremental benchmark (#12400) -
f82bb67
[red-knot] trace file when inferring types (#12401) -
5f96f69
[red-knot] Fix bug where module resolution would not be invalidated if an ent... - Additional commits viewable in compare view