v0.4.6
版本发布时间: 2024-05-29 10:06:55
astral-sh/ruff最新发布版本:0.5.3(2024-07-19 01:10:02)
Changes
Breaking changes
- Use project-relative paths when calculating GitLab fingerprints (#11532)
Preview features
- [
flake8-async
] Sleep with >24 hour interval should usually sleep forever (ASYNC116
) (#11498)
Rule changes
- [
numpy
] Add missing functions to NumPy 2.0 migration rule (#11528) - [
mccabe
] Consider irrefutable pattern similar toif .. else
forC901
(#11565) - Consider
match
-case
statements forC901
,PLR0912
, andPLR0915
(#11521) - Remove empty strings when converting to f-string (
UP032
) (#11524) - [
flake8-bandit
]request-without-timeout
should warn forrequests.request
(#11548) - [
flake8-self
] Ignore sunder accesses inflake8-self
rules (#11546) - [
pyupgrade
] Lint forTypeAliasType
usages (UP040
) (#11530)
Server
- Respect excludes in
ruff server
configuration discovery (#11551) - Use default settings if initialization options is empty or not provided (#11566)
-
ruff server
correctly treats.pyi
files as stub files (#11535) -
ruff server
searches for configuration in parent directories (#11537) -
ruff server
: An empty code action filter no longer returns notebook source actions (#11526)
Bug fixes
- [
flake8-logging-format
] Fix autofix title inlogging-warn
(G010
) (#11514) - [
refurb
] Avoid recommendingoperator.itemgetter
with dependence on lambda arguments (#11574) - [
flake8-simplify
] Avoid recommending context manager in__enter__
implementations (#11575) - Create intermediary directories for
--output-file
(#11550) - Propagate reads on global variables (#11584)
- Treat all
singledispatch
arguments as runtime-required (#11523)
Contributors
1、 ruff-0.4.6-aarch64-apple-darwin.tar.gz 7.79MB
2、 ruff-0.4.6-aarch64-apple-darwin.tar.gz.sha256 105B
3、 ruff-0.4.6-aarch64-pc-windows-msvc.zip 7.34MB
4、 ruff-0.4.6-aarch64-pc-windows-msvc.zip.sha256 105B
5、 ruff-0.4.6-aarch64-unknown-linux-gnu.tar.gz 7.83MB
6、 ruff-0.4.6-aarch64-unknown-linux-gnu.tar.gz.sha256 110B
7、 ruff-0.4.6-aarch64-unknown-linux-musl.tar.gz 7.74MB
8、 ruff-0.4.6-aarch64-unknown-linux-musl.tar.gz.sha256 111B
9、 ruff-0.4.6-armv7-unknown-linux-gnueabihf.tar.gz 7.21MB
10、 ruff-0.4.6-armv7-unknown-linux-gnueabihf.tar.gz.sha256 114B
11、 ruff-0.4.6-armv7-unknown-linux-musleabihf.tar.gz 7.19MB
12、 ruff-0.4.6-armv7-unknown-linux-musleabihf.tar.gz.sha256 115B
13、 ruff-0.4.6-i686-pc-windows-msvc.zip 7.17MB
14、 ruff-0.4.6-i686-pc-windows-msvc.zip.sha256 102B
15、 ruff-0.4.6-i686-unknown-linux-gnu.tar.gz 8.36MB
16、 ruff-0.4.6-i686-unknown-linux-gnu.tar.gz.sha256 107B
17、 ruff-0.4.6-i686-unknown-linux-musl.tar.gz 7.98MB
18、 ruff-0.4.6-i686-unknown-linux-musl.tar.gz.sha256 108B
19、 ruff-0.4.6-powerpc64-unknown-linux-gnu.tar.gz 9.03MB
20、 ruff-0.4.6-powerpc64-unknown-linux-gnu.tar.gz.sha256 112B
21、 ruff-0.4.6-powerpc64le-unknown-linux-gnu.tar.gz 8.66MB
22、 ruff-0.4.6-powerpc64le-unknown-linux-gnu.tar.gz.sha256 114B
23、 ruff-0.4.6-s390x-unknown-linux-gnu.tar.gz 9.72MB
24、 ruff-0.4.6-s390x-unknown-linux-gnu.tar.gz.sha256 108B
25、 ruff-0.4.6-x86_64-apple-darwin.tar.gz 8.14MB
26、 ruff-0.4.6-x86_64-apple-darwin.tar.gz.sha256 104B
27、 ruff-0.4.6-x86_64-pc-windows-msvc.zip 7.88MB
28、 ruff-0.4.6-x86_64-pc-windows-msvc.zip.sha256 104B
29、 ruff-0.4.6-x86_64-unknown-linux-gnu.tar.gz 8.39MB
30、 ruff-0.4.6-x86_64-unknown-linux-gnu.tar.gz.sha256 109B
31、 ruff-0.4.6-x86_64-unknown-linux-musl.tar.gz 8.45MB