Release v0.0.255 · astral-sh/ruff (original) (raw)
What's Changed
Rules
- [
flake8-pie] Fix PIE802 broken auto-fix with trailing comma by @JonathanPlasse in #3402 - [
flake8-pie] Implement autofix for PIE810 by @kyoto7250 in #3411 - [
flake8-bugbear] Addflake8-bugbear's B030 rule by @aacunningham in #3400 - [
pycodestyle] Add E231 by @carlosmiei in #3344 - [
pyupgrade] Flag deprecated (but renamed) imports in UP035 by @charliermarsh in #3448 - [
pyupgrade] Remap ChainMap, Counter, and OrderedDict imports to collections by @charliermarsh in #3392 - [
pylint] C1901: compare-to-empty-string by @AreamanM in #3405 - [
pylint] Implement W1508 invalid-envvar-default by @latonis in #3449 - [
pylint] Implement E1507 invalid-envvar-value by @latonis in #3467
Settings
- Infer
target-versionfrom project metadata by @JonathanPlasse in #3470 - Implement configuration options
runtime-evaluated-decoratorsandruntime-evaluated-base-classesforflake8-type-checkingby @sasanjac in #3292 - Add Azure DevOps as a
--formatoption. by @StefanBRas in #3335
Bug Fixes
- Re-enable the T and C linter prefix selectors by @charliermarsh in #3452
- Treat unary operations on constants as constant-like by @charliermarsh in #3348
- Skip byte-order-mark at start of file by @charliermarsh in #3343
- Don't enforce typing-import rules in .pyi files by @charliermarsh in #3362
- Include entire prefix when reporting rule selector errors by @charliermarsh in #3375
- Handle multi-line fixes for byte-string prefixing by @charliermarsh in #3391
- Catch RET504 usages via decorators by @charliermarsh in #3395
- Ignore multiply-assigned variables in RET504 by @charliermarsh in #3393
- [FIX] PYI011: recognize
Bool/Float/Complexnumbers as simple defaults by @XuehaiPan in #3459 - Respect ignores for runtime-import-in-type-checking-block (TCH004) by @charliermarsh in #3474
- Avoid panicking in invalid_escape_sequence by @charliermarsh in #3338
- fix: Emit a more useful error if an
extendpoints at a non-existent ruff.toml file. by @DanCardin in #3417 - Respect
--show-fixeswith--fix-onlyby @charliermarsh in #3426 - When "Args" and "Parameters" are present, prefer NumPy style by @charliermarsh in #3430
- Remove empty line after RUF100 auto-fix by @JonathanPlasse in #3414
- Avoid removing un-aliased exceptions in
OSError-aliased handlers by @charliermarsh in #3451 - Use a hash to fingerprint GitLab CI output by @charliermarsh in #3456
- Avoid respecting noqa directives when RUF100 is enabled by @charliermarsh in #3469
- Output GitLab paths relative to
CI_PROJECT_DIRby @charliermarsh in #3475 - Implement an iterator for universal newlines by @charliermarsh in #3454
New Contributors
- @sasanjac made their first contribution in #3292
- @aacunningham made their first contribution in #3380
- @orf made their first contribution in #3389
- @DanCardin made their first contribution in #3417
- @AreamanM made their first contribution in #3405
- @kyoto7250 made their first contribution in #3411
- @latonis made their first contribution in #3449
- @XuehaiPan made their first contribution in #3459
- @calumy made their first contribution in #3461
- @YDX-2147483647 made their first contribution in #3473
Full Changelog: v0.0.254...v0.0.255