Sourced from ruff's releases.
v0.0.256
What's Changed
Bug Fixes
- PYI011: allow
mathconstants in defaults by@XuehaiPanin charliermarsh/ruff#3484- Remove erroneous C4-to-C40 redirect by
@charliermarshin charliermarsh/ruff#3488- fix lack of
notin error message by@Czakiin charliermarsh/ruff#3497- Ensure that redirect warnings appear exactly once per code by
@charliermarshin charliermarsh/ruff#3500- Allow f-strings and concatenations in os.getenv by
@charliermarshin charliermarsh/ruff#3516- Allow string percent formatting in os.getenv by
@charliermarshin charliermarsh/ruff#3518- Refine complexity rules for try-except-else-finally by
@charliermarshin charliermarsh/ruff#3519- Replicate inline comments when splitting single-line imports by
@charliermarshin charliermarsh/ruff#3521- Avoid PEP 604 isinstance errors for starred tuples by
@charliermarshin charliermarsh/ruff#3527- Avoid tracking as-imports separately with force-single-line by
@charliermarshin charliermarsh/ruff#3530- Fix PYI011 and add auto-fix by
@JonathanPlassein charliermarsh/ruff#3492- Avoid PEP 604 panic with empty tuple by
@charliermarshin charliermarsh/ruff#3526- Add last remaining deprecated typing imports by
@charliermarshin charliermarsh/ruff#3529- Avoid unused argument violations in .pyi files by
@charliermarshin charliermarsh/ruff#3533Other Changes
- Include individual path checks in --verbose logging by
@charliermarshin charliermarsh/ruff#3489- Allow
# ruff:prefix for isort action comments by@charliermarshin charliermarsh/ruff#3493Full Changelog: https://github.com/charliermarsh/ruff/compare/v0.0.255...v0.0.256
v0.0.255
What's Changed
Rules
- [
flake8-pie] Fix PIE802 broken auto-fix with trailing comma by@JonathanPlassein charliermarsh/ruff#3402- [
flake8-pie] Implement autofix for PIE810 by@kyoto7250in charliermarsh/ruff#3411- [
flake8-bugbear] Addflake8-bugbear's B030 rule by@aacunninghamin charliermarsh/ruff#3400- [
pycodestyle] Add E231 by@carlosmieiin charliermarsh/ruff#3344- [
pyupgrade] Flag deprecated (but renamed) imports in UP035 by@charliermarshin charliermarsh/ruff#3448- [
pyupgrade] Remap ChainMap, Counter, and OrderedDict imports to collections by@charliermarshin charliermarsh/ruff#3392- [
pylint] C1901: compare-to-empty-string by@AreamanMin charliermarsh/ruff#3405- [
pylint] Implement W1508 invalid-envvar-default by@latonisin charliermarsh/ruff#3449- [
pylint] Implement E1507 invalid-envvar-value by@latonisin charliermarsh/ruff#3467Settings
- Infer
target-versionfrom project metadata by@JonathanPlassein charliermarsh/ruff#3470- Implement configuration options
runtime-evaluated-decoratorsandruntime-evaluated-base-classesforflake8-type-checkingby@sasanjacin charliermarsh/ruff#3292- Add Azure DevOps as a
--formatoption. by@StefanBRasin charliermarsh/ruff#3335Bug Fixes
- Re-enable the T and C linter prefix selectors by
@charliermarshin charliermarsh/ruff#3452- Treat unary operations on constants as constant-like by
@charliermarshin charliermarsh/ruff#3348- Skip byte-order-mark at start of file by
@charliermarshin charliermarsh/ruff#3343
... (truncated)
e636c5f
Avoid unused argument violations in .pyi files (#3533)12dfd57
Bump version to v0.0.256 (#3531)d188d24
Avoid tracking as-imports separately with force-single-line (#3530)57796c5
Add last remaining deprecated typing imports (#3529)2545869
Avoid PEP 604 isinstance errors for starred tuples (#3527)58353a4
Avoid PEP 604 panic with empty tuple (#3526)a36139a
Replicate inline comments when splitting single-line imports (#3521)7e90411
Fix PYI011 and add auto-fix (#3492)344daeb
Refine complexity rules for try-except-else-finally (#3519)432059d
Allow # ruff: prefix for isort action comments (#3493)