v0.0.254
版本发布时间: 2023-03-04 12:54:22
astral-sh/ruff最新发布版本:0.5.3(2024-07-19 01:10:02)
What's Changed
Rules
- [
pyupgrade
] Replace tuples with type union in isinstance or issubclass calls by @martinlehoux in https://github.com/charliermarsh/ruff/pull/3280 - [
flake8-pyi
] Add flake-pyi PYI033 "Do not use type comments in stubs" by @konstin in https://github.com/charliermarsh/ruff/pull/3302 - [
flake8-pyi
] PYI006 bad version info comparison by @konstin in https://github.com/charliermarsh/ruff/pull/3291 - [
pycodestyle
] feat(E251,E252): add rules by @carlosmiei in https://github.com/charliermarsh/ruff/pull/3274 - [
pycodestyle
] feat(E211): add rule + autofix by @carlosmiei in https://github.com/charliermarsh/ruff/pull/3313 - [
pycodestyle
] feat(e225,226,227,228): add rules by @carlosmiei in https://github.com/charliermarsh/ruff/pull/3300 - [
pycodestyle
] feat(W191): add indentation_contains_tabs by @carlosmiei in https://github.com/charliermarsh/ruff/pull/3249 - Redirect
RUF004
toB026
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3293
CLI
- Add a
--ignore-noqa
CLI flag to force-ignore noqa directives by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3296
Settings
- Implement
property-decorators
configuration option for pydocstyle by @staticssleever668 in https://github.com/charliermarsh/ruff/pull/3311 - Always include
@classmethod
and@staticmethod
in decorator lists by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3314 - Detect quote style ignoring docstrings by @bz2 in https://github.com/charliermarsh/ruff/pull/3306
Bug Fixes
- Deduplicate SIM116 errors by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3260
- Don't flag keyword-based logging format strings by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3261
- Avoid raising TRY200 violations within new scopes by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3275
- Use expression span for yoda-conditions fixes by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3276
- Avoid PEP 585 rewrites when builtins are shadowed by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3286
- Ignore unused imports in ModuleNotFoundError blocks by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3288
- Treat function type annotations within classes as runtime-required by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3312
- Extend
RET503
autofixes to "end of statement", including comments by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3324 - Handle empty NamedTuple and TypedDict conversions by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3251
- Use
identifier_range
for a few more rules by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3254 - Match non-lowercase with S105 again by @scop in https://github.com/charliermarsh/ruff/pull/3258
- Abort when unable to fix relative imports past module root by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3319
- Use presence of convention-specific sections during docstring inference by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3325
- Treat callables within type definitions as default-non-types by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3329
- Explicitly put
Path(...)
in Pathlib violations by @evanrittenhouse in https://github.com/charliermarsh/ruff/pull/3333
New Contributors
- @rouge8 made their first contribution in https://github.com/charliermarsh/ruff/pull/3277
- @staticssleever668 made their first contribution in https://github.com/charliermarsh/ruff/pull/3311
- @bz2 made their first contribution in https://github.com/charliermarsh/ruff/pull/3306
- @evanrittenhouse made their first contribution in https://github.com/charliermarsh/ruff/pull/3333
Full Changelog: https://github.com/charliermarsh/ruff/compare/v0.0.253...v0.0.254
1、 ruff-aarch64-apple-darwin.tar.gz 3.39MB
2、 ruff-aarch64-apple-darwin.tar.gz.sha256 99B
3、 ruff-aarch64-pc-windows-msvc.zip 3.09MB
4、 ruff-aarch64-pc-windows-msvc.zip.sha256 99B
5、 ruff-aarch64-unknown-linux-gnu.tar.gz 3.58MB
6、 ruff-aarch64-unknown-linux-gnu.tar.gz.sha256 104B
7、 ruff-aarch64-unknown-linux-musl.tar.gz 3.57MB
8、 ruff-aarch64-unknown-linux-musl.tar.gz.sha256 105B
9、 ruff-armv7-unknown-linux-gnueabihf.tar.gz 3.37MB
10、 ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256 108B
11、 ruff-armv7-unknown-linux-musleabihf.tar.gz 3.37MB
12、 ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256 109B
13、 ruff-i686-pc-windows-msvc.zip 3.2MB
14、 ruff-i686-pc-windows-msvc.zip.sha256 96B
15、 ruff-i686-unknown-linux-gnu.tar.gz 3.78MB
16、 ruff-i686-unknown-linux-gnu.tar.gz.sha256 101B
17、 ruff-i686-unknown-linux-musl.tar.gz 3.62MB
18、 ruff-i686-unknown-linux-musl.tar.gz.sha256 102B
19、 ruff-powerpc64-unknown-linux-gnu.tar.gz 4.29MB
20、 ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256 106B
21、 ruff-powerpc64le-unknown-linux-gnu.tar.gz 4.21MB
22、 ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256 108B
23、 ruff-s390x-unknown-linux-gnu.tar.gz 4.65MB
24、 ruff-s390x-unknown-linux-gnu.tar.gz.sha256 102B
25、 ruff-x86_64-apple-darwin.tar.gz 3.79MB
26、 ruff-x86_64-apple-darwin.tar.gz.sha256 98B
27、 ruff-x86_64-pc-windows-msvc.zip 3.29MB
28、 ruff-x86_64-pc-windows-msvc.zip.sha256 98B
29、 ruff-x86_64-unknown-linux-gnu.tar.gz 3.88MB
30、 ruff-x86_64-unknown-linux-gnu.tar.gz.sha256 103B
31、 ruff-x86_64-unknown-linux-musl.tar.gz 3.93MB