v0.0.241
版本发布时间: 2023-02-04 09:44:45
astral-sh/ruff最新发布版本:0.5.3(2024-07-19 01:10:02)
What's Changed
Deprecates
- Soft-deprecate
update-check
by @akx in https://github.com/charliermarsh/ruff/pull/2530
Rules
- feat: add autofix for PLR0402 by @spaceone in https://github.com/charliermarsh/ruff/pull/2504
- Allow F811 noqa declarations on containing import lines by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2553
Features
- Mark fixable issues in printer output by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2500
- Always report parse errors back to the user by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2505
- Notify user if autofix introduces syntax error by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2507
- Add
known-standard-library
for each Python version by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/2491
Bug Fixes
- Avoid renaming unused loop variables with deferred usages by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2509
- [
flake8-self
] Fix False Negative Issue on RuleSLF001
by @saadmk11 in https://github.com/charliermarsh/ruff/pull/2527 - Minor fixes to PLR0915 logic by @chanman3388 in https://github.com/charliermarsh/ruff/pull/2518
- Exit upon showing files with
--show-files
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2543 - Ignore direct source-children in
implicit-namespace-package
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2560 - Allow
list()
andtuple()
calls in__all__
assignments by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2499 - Don't walk past project root when figuring out exclusion by @akx in https://github.com/charliermarsh/ruff/pull/2471
- Avoid hang when detecting trailing comments by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2549
New Contributors
- @JacobCoffee made their first contribution in https://github.com/charliermarsh/ruff/pull/2516
- @Pierre-Sassoulas made their first contribution in https://github.com/charliermarsh/ruff/pull/2559
Full Changelog: https://github.com/charliermarsh/ruff/compare/v0.0.240...v0.0.241