0.5.2
版本发布时间: 2024-07-14 23:11:30
astral-sh/ruff最新发布版本:0.5.3(2024-07-19 01:10:02)
Release Notes
Preview features
- Use
space
separator before parenthesized expressions in comprehensions with leading comments (#12282) - [
flake8-async
] UpdateASYNC100
to includeanyio
andasyncio
(#12221) - [
flake8-async
] UpdateASYNC109
to includeanyio
andasyncio
(#12236) - [
flake8-async
] UpdateASYNC110
to includeanyio
andasyncio
(#12261) - [
flake8-async
] UpdateASYNC115
to includeanyio
andasyncio
(#12262) - [
flake8-async
] UpdateASYNC116
to includeanyio
andasyncio
(#12266)
Rule changes
- [
flake8-return
] Exempt properties from explicit return rule (RET501
) (#12243) - [
numpy
] Addnp.NAN
-to-np.nan
diagnostic (#12292) - [
refurb
] Makelist-reverse-copy
an unsafe fix (#12303)
Server
- Consider
include
andextend-include
settings in native server (#12252) - Include nested configurations in settings reloading (#12253)
CLI
- Omit code frames for fixes with empty ranges (#12304)
- Warn about formatter incompatibility for
D203
(#12238)
Bug fixes
- Make cache-write failures non-fatal on Windows (#12302)
- Treat
not
operations as boolean tests (#12301) - [
flake8-bandit
] AvoidS310
violations for HTTP-safe f-strings (#12305) - [
flake8-bandit
] Support explicit string concatenations in S310 HTTP detection (#12315) - [
flake8-bandit
] fix S113 false positive for httpx withouttimeout
argument (#12213) - [
pycodestyle
] Remove "non-obvious" allowance for E721 (#12300) - [
pyflakes
] Considerwith
blocks as single-item branches for redefinition analysis (#12311) - [
refurb
] Restrict forwarding fornewline
argument inopen()
calls to Python versions >= 3.10 (#12244)
Documentation
- Update help and documentation to reflect
--output-format full
default (#12248)
Performance
- Use more threads when discovering Python files (#12258)
Install ruff 0.5.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.5.2/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/astral-sh/ruff/releases/download/0.5.2/ruff-installer.ps1 | iex"
Download ruff 0.5.2
1、 dist-manifest.json 34.51KB
2、 ruff-aarch64-apple-darwin.tar.gz 7.8MB
3、 ruff-aarch64-apple-darwin.tar.gz.sha256 99B
4、 ruff-aarch64-pc-windows-msvc.zip 7.42MB
5、 ruff-aarch64-pc-windows-msvc.zip.sha256 99B
6、 ruff-aarch64-unknown-linux-gnu.tar.gz 9.52MB
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.04MB
11、 ruff-arm-unknown-linux-musleabihf.tar.gz.sha256 107B
12、 ruff-armv7-unknown-linux-gnueabihf.tar.gz 8.85MB
13、 ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256 108B
14、 ruff-armv7-unknown-linux-musleabihf.tar.gz 8.94MB
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.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.99MB
27、 ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256 108B
28、 ruff-s390x-unknown-linux-gnu.tar.gz 10.84MB
29、 ruff-s390x-unknown-linux-gnu.tar.gz.sha256 102B
30、 ruff-x86_64-apple-darwin.tar.gz 8.2MB
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.67MB
35、 ruff-x86_64-unknown-linux-gnu.tar.gz.sha256 103B
36、 ruff-x86_64-unknown-linux-musl.tar.gz 9.77MB
37、 ruff-x86_64-unknown-linux-musl.tar.gz.sha256 104B
38、 source.tar.gz 4.7MB
39、 source.tar.gz.sha256 80B