Sourced from ruff's releases.
v0.0.257
What's Changed
Rules
- [
ruff
] Preferitertools.pairwise()
overzip()
for successive pairs (RUF007
) by@evanrittenhouse
in charliermarsh/ruff#3501- [
flake8-bugbear
] Addno-explicit-stacklevel
(B028
) by@johnor
in charliermarsh/ruff#3550- [
pylint
] invalid-characters-* by@r3m0t
in charliermarsh/ruff#3552- [
pylint
] Implementuseless-return
(R1711
) by@tomecki
in charliermarsh/ruff#3116- [
pylint
]: Implementcontinue-in-finally
(E0116
) by@latonis
in charliermarsh/ruff#3541Bug Fixes
- Rewrite mock import with starred imports by
@charliermarsh
in charliermarsh/ruff#3566- Respect
type
overrides in E721 by@charliermarsh
in charliermarsh/ruff#3582- Use
value > max
style in pylint and mccabe messages by@edgarrmondragon
in charliermarsh/ruff#3553- Fix autofix conflict between
D209
andD400
by@JonathanPlasse
in charliermarsh/ruff#3564- Avoid C1901 violations within subscripts by
@charliermarsh
in charliermarsh/ruff#3517- Avoid adding dashed line outside of docstring by
@charliermarsh
in charliermarsh/ruff#3581- Enable ANSI colors on Windows 10 by
@charliermarsh
in charliermarsh/ruff#3583New Contributors
@johnor
made their first contribution in charliermarsh/ruff#3550Full Changelog: https://github.com/charliermarsh/ruff/compare/v0.0.256...v0.0.257
v0.0.256
What's Changed
Bug Fixes
- PYI011: allow
math
constants in defaults by@XuehaiPan
in charliermarsh/ruff#3484- Remove erroneous C4-to-C40 redirect by
@charliermarsh
in charliermarsh/ruff#3488- fix lack of
not
in error message by@Czaki
in charliermarsh/ruff#3497- Ensure that redirect warnings appear exactly once per code by
@charliermarsh
in charliermarsh/ruff#3500- Allow f-strings and concatenations in os.getenv by
@charliermarsh
in charliermarsh/ruff#3516- Allow string percent formatting in os.getenv by
@charliermarsh
in charliermarsh/ruff#3518- Refine complexity rules for try-except-else-finally by
@charliermarsh
in charliermarsh/ruff#3519- Replicate inline comments when splitting single-line imports by
@charliermarsh
in charliermarsh/ruff#3521- Avoid PEP 604 isinstance errors for starred tuples by
@charliermarsh
in charliermarsh/ruff#3527- Avoid tracking as-imports separately with force-single-line by
@charliermarsh
in charliermarsh/ruff#3530- Fix PYI011 and add auto-fix by
@JonathanPlasse
in charliermarsh/ruff#3492- Avoid PEP 604 panic with empty tuple by
@charliermarsh
in charliermarsh/ruff#3526- Add last remaining deprecated typing imports by
@charliermarsh
in charliermarsh/ruff#3529- Avoid unused argument violations in .pyi files by
@charliermarsh
in charliermarsh/ruff#3533Other Changes
- Include individual path checks in --verbose logging by
@charliermarsh
in charliermarsh/ruff#3489- Allow
# ruff:
prefix for isort action comments by@charliermarsh
in charliermarsh/ruff#3493Full Changelog: https://github.com/charliermarsh/ruff/compare/v0.0.255...v0.0.256
0c4926f
Bump version to v0.0.257 (#3591)61653b9
[pylint
] Implement useless-return
(R1711
) (#3116)8dd3959
Update output in resources/test/project/README.md
(#3587)50f9db2
Enable ANSI colors on Windows 10 (#3583)1dd3cbd
[pylint
] invalid-characters-* (#3552)bd935cb
[flake8-bugbear
] Add no-explicit-stacklevel
(B028
) (#3550)babd0a0
Avoid adding dashed line outside of docstring (#3581)87fab4a
Benchmark all rules (#3570)2e21920
Respect type
overrides in E721 (#3582)dedf4cb
refactor: Move scope and binding types to scope.rs
(#3573)