0.5.1
版本发布时间: 2024-07-05 21:30:22
astral-sh/ruff最新发布版本:0.5.3(2024-07-19 01:10:02)
Release Notes
Preview features
- [
flake8-bugbear
] Implement mutable-contextvar-default (B039) (#12113) - [
pycodestyle
] Whitespace after decorator (E204
) (#12140) - [
pytest
] ReversePT001
andPT0023
defaults (#12106)
Rule changes
- Enable token-based rules on source with syntax errors (#11950)
- [
flake8-bandit
] Detecthttpx
forS113
(#12174) - [
numpy
] UpdateNPY201
to include exception deprecations (#12065) - [
pylint
] Generate autofix forduplicate-bases
(PLE0241
) (#12105)
Server
- Avoid syntax error notification for source code actions (#12148)
- Consider the content of the new cells during notebook sync (#12203)
- Fix replacement edit range computation (#12171)
Bug fixes
- Disable auto-fix when source has syntax errors (#12134)
- Fix cache key collisions for paths with separators (#12159)
- Make
requires-python
inference robust to==
(#12091) - Use char-wise width instead of
str
-width (#12135) - [
pycodestyle
] AvoidE275
if keyword followed by comma (#12136) - [
pycodestyle
] AvoidE275
if keyword is followed by a semicolon (#12095) - [
pylint
] Skip dummy variables forPLR1704
(#12190)
Performance
Contributors
- @AlexWaygood
- @MichaReiser
- @Peiffap
- @ThomasFaivre
- @bersace
- @charliermarsh
- @dhruvmanila
- @github-actions
- @jkauerl
- @mkniewallner
- @mtsokol
- @renovate
- @snowsignal
- @tjkuson
- @zanieb
Install ruff 0.5.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.5.1/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/astral-sh/ruff/releases/download/0.5.1/ruff-installer.ps1 | iex"
Download ruff 0.5.1
1、 dist-manifest.json 33.07KB
2、 ruff-aarch64-apple-darwin.tar.gz 7.79MB
3、 ruff-aarch64-apple-darwin.tar.gz.sha256 99B
4、 ruff-aarch64-pc-windows-msvc.zip 7.41MB
5、 ruff-aarch64-pc-windows-msvc.zip.sha256 99B
6、 ruff-aarch64-unknown-linux-gnu.tar.gz 9.53MB
7、 ruff-aarch64-unknown-linux-gnu.tar.gz.sha256 104B
8、 ruff-aarch64-unknown-linux-musl.tar.gz 9.49MB
9、 ruff-aarch64-unknown-linux-musl.tar.gz.sha256 105B
10、 ruff-arm-unknown-linux-musleabihf.tar.gz 9.06MB
11、 ruff-arm-unknown-linux-musleabihf.tar.gz.sha256 107B
12、 ruff-armv7-unknown-linux-gnueabihf.tar.gz 8.86MB
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.18MB
17、 ruff-i686-pc-windows-msvc.zip.sha256 96B
18、 ruff-i686-unknown-linux-gnu.tar.gz 9.62MB
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.38MB
25、 ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256 106B
26、 ruff-powerpc64le-unknown-linux-gnu.tar.gz 9.98MB
27、 ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256 108B
28、 ruff-s390x-unknown-linux-gnu.tar.gz 10.85MB
29、 ruff-s390x-unknown-linux-gnu.tar.gz.sha256 102B
30、 ruff-x86_64-apple-darwin.tar.gz 8.19MB
31、 ruff-x86_64-apple-darwin.tar.gz.sha256 98B
32、 ruff-x86_64-pc-windows-msvc.zip 7.94MB
33、 ruff-x86_64-pc-windows-msvc.zip.sha256 98B
34、 ruff-x86_64-unknown-linux-gnu.tar.gz 9.69MB
35、 ruff-x86_64-unknown-linux-gnu.tar.gz.sha256 103B
36、 ruff-x86_64-unknown-linux-musl.tar.gz 9.75MB
37、 ruff-x86_64-unknown-linux-musl.tar.gz.sha256 104B
38、 source.tar.gz 4.68MB
39、 source.tar.gz.sha256 80B