0.5.3
版本发布时间: 2024-07-19 01:10:02
astral-sh/ruff最新发布版本:0.5.3(2024-07-19 01:10:02)
Release Notes
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
- Add docs for Ruff language server (#12344)
- Migrate to standalone docs repo (#12341)
- Update versioning policy for editor integration (#12375)
Other changes
- Publish Wasm API to npm (#12317)
Contributors
- @AlexWaygood
- @MichaReiser
- @cake-monotone
- @carljm
- @charliermarsh
- @dhruvmanila
- @github-actions
- @konstin
- @mattrunyon
- @renovate
Install ruff 0.5.3
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.5.3/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/astral-sh/ruff/releases/download/0.5.3/ruff-installer.ps1 | iex"
Download ruff 0.5.3
1、 dist-manifest.json 33.8KB
2、 ruff-aarch64-apple-darwin.tar.gz 7.77MB
3、 ruff-aarch64-apple-darwin.tar.gz.sha256 99B
4、 ruff-aarch64-pc-windows-msvc.zip 7.43MB
5、 ruff-aarch64-pc-windows-msvc.zip.sha256 99B
6、 ruff-aarch64-unknown-linux-gnu.tar.gz 9.47MB
7、 ruff-aarch64-unknown-linux-gnu.tar.gz.sha256 104B
8、 ruff-aarch64-unknown-linux-musl.tar.gz 9.46MB
9、 ruff-aarch64-unknown-linux-musl.tar.gz.sha256 105B
10、 ruff-arm-unknown-linux-musleabihf.tar.gz 9.04MB
11、 ruff-arm-unknown-linux-musleabihf.tar.gz.sha256 107B
12、 ruff-armv7-unknown-linux-gnueabihf.tar.gz 8.84MB
13、 ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256 108B
14、 ruff-armv7-unknown-linux-musleabihf.tar.gz 8.92MB
15、 ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256 109B
16、 ruff-i686-pc-windows-msvc.zip 7.19MB
17、 ruff-i686-pc-windows-msvc.zip.sha256 96B
18、 ruff-i686-unknown-linux-gnu.tar.gz 9.61MB
19、 ruff-i686-unknown-linux-gnu.tar.gz.sha256 101B
20、 ruff-i686-unknown-linux-musl.tar.gz 9.27MB
21、 ruff-i686-unknown-linux-musl.tar.gz.sha256 102B
22、 ruff-installer.ps1 13.71KB
23、 ruff-installer.sh 39.59KB
24、 ruff-powerpc64-unknown-linux-gnu.tar.gz 10.32MB
25、 ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256 106B
26、 ruff-powerpc64le-unknown-linux-gnu.tar.gz 9.95MB
27、 ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256 108B
28、 ruff-s390x-unknown-linux-gnu.tar.gz 10.83MB
29、 ruff-s390x-unknown-linux-gnu.tar.gz.sha256 102B
30、 ruff-x86_64-apple-darwin.tar.gz 8.15MB
31、 ruff-x86_64-apple-darwin.tar.gz.sha256 98B
32、 ruff-x86_64-pc-windows-msvc.zip 7.92MB
33、 ruff-x86_64-pc-windows-msvc.zip.sha256 98B
34、 ruff-x86_64-unknown-linux-gnu.tar.gz 9.65MB
35、 ruff-x86_64-unknown-linux-gnu.tar.gz.sha256 103B
36、 ruff-x86_64-unknown-linux-musl.tar.gz 9.71MB
37、 ruff-x86_64-unknown-linux-musl.tar.gz.sha256 104B
38、 source.tar.gz 4.57MB
39、 source.tar.gz.sha256 80B