Warnings were logged while processing this repo. Please check the logs for more information.
Release Notes
charliermarsh/ruff
### [`v0.0.240`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.240)
[Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.239...v0.0.240)
#### What's Changed
##### Rules
- \[`pyupgrade`]: Remove outdated `sys.version_info` blocks by [@colin99d](https://togithub.com/colin99d) in [https://github.com/charliermarsh/ruff/pull/2099](https://togithub.com/charliermarsh/ruff/pull/2099)
- \[`flake8-self`] Add Plugin and Rule `SLF001` by [@saadmk11](https://togithub.com/saadmk11) in [https://github.com/charliermarsh/ruff/pull/2470](https://togithub.com/charliermarsh/ruff/pull/2470)
- \[`pylint`] Implement pylint's `too-many-statements` rule (`PLR0915`) by [@chanman3388](https://togithub.com/chanman3388) in [https://github.com/charliermarsh/ruff/pull/2445](https://togithub.com/charliermarsh/ruff/pull/2445)
##### Settings
- \[`isort`] Support forced_separate by [@akx](https://togithub.com/akx) in [https://github.com/charliermarsh/ruff/pull/2268](https://togithub.com/charliermarsh/ruff/pull/2268)
- \[`isort`] Add isort option lines-after-imports by [@reidswan](https://togithub.com/reidswan) in [https://github.com/charliermarsh/ruff/pull/2440](https://togithub.com/charliermarsh/ruff/pull/2440)
- Allow non-ruff.toml-named files for --config by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2463](https://togithub.com/charliermarsh/ruff/pull/2463)
##### Bug Fixes
- Trigger, but don't fix, SIM rules if comments are present by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2450](https://togithub.com/charliermarsh/ruff/pull/2450)
- Only avoid PEP604 rewrites for pre-Python 3.10 code by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2449](https://togithub.com/charliermarsh/ruff/pull/2449)
- Use LibCST to reverse Yoda conditions by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2468](https://togithub.com/charliermarsh/ruff/pull/2468)
- fix: assertTrue()/assertFalse() fixer should not test for identity by [@spaceone](https://togithub.com/spaceone) in [https://github.com/charliermarsh/ruff/pull/2476](https://togithub.com/charliermarsh/ruff/pull/2476)
- Treat `if 0:` and `if False:` as type-checking blocks by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2485](https://togithub.com/charliermarsh/ruff/pull/2485)
- Avoid iterating over body twice by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2439](https://togithub.com/charliermarsh/ruff/pull/2439)
- more builtin name checks when autofixing by [@spaceone](https://togithub.com/spaceone) in [https://github.com/charliermarsh/ruff/pull/2430](https://togithub.com/charliermarsh/ruff/pull/2430)
- Respect parent noqa in --add-noqa by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2464](https://togithub.com/charliermarsh/ruff/pull/2464)
- Avoid removing un-selected codes when applying `--add-noqa` edits by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2465](https://togithub.com/charliermarsh/ruff/pull/2465)
- Carry-over `ignore` to next config layer if `select = []` by [@not-my-profile](https://togithub.com/not-my-profile) in [https://github.com/charliermarsh/ruff/pull/2467](https://togithub.com/charliermarsh/ruff/pull/2467)
- Visit NamedExpr values before targets by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2484](https://togithub.com/charliermarsh/ruff/pull/2484)
#### New Contributors
- [@reidswan](https://togithub.com/reidswan) made their first contribution in [https://github.com/charliermarsh/ruff/pull/2440](https://togithub.com/charliermarsh/ruff/pull/2440)
- [@chanman3388](https://togithub.com/chanman3388) made their first contribution in [https://github.com/charliermarsh/ruff/pull/2445](https://togithub.com/charliermarsh/ruff/pull/2445)
**Full Changelog**: https://github.com/charliermarsh/ruff/compare/v0.0.239...v0.0.240
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
0.0.239
->0.0.240
⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the logs for more information.
Release Notes
charliermarsh/ruff
### [`v0.0.240`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.240) [Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.239...v0.0.240) #### What's Changed ##### Rules - \[`pyupgrade`]: Remove outdated `sys.version_info` blocks by [@colin99d](https://togithub.com/colin99d) in [https://github.com/charliermarsh/ruff/pull/2099](https://togithub.com/charliermarsh/ruff/pull/2099) - \[`flake8-self`] Add Plugin and Rule `SLF001` by [@saadmk11](https://togithub.com/saadmk11) in [https://github.com/charliermarsh/ruff/pull/2470](https://togithub.com/charliermarsh/ruff/pull/2470) - \[`pylint`] Implement pylint's `too-many-statements` rule (`PLR0915`) by [@chanman3388](https://togithub.com/chanman3388) in [https://github.com/charliermarsh/ruff/pull/2445](https://togithub.com/charliermarsh/ruff/pull/2445) ##### Settings - \[`isort`] Support forced_separate by [@akx](https://togithub.com/akx) in [https://github.com/charliermarsh/ruff/pull/2268](https://togithub.com/charliermarsh/ruff/pull/2268) - \[`isort`] Add isort option lines-after-imports by [@reidswan](https://togithub.com/reidswan) in [https://github.com/charliermarsh/ruff/pull/2440](https://togithub.com/charliermarsh/ruff/pull/2440) - Allow non-ruff.toml-named files for --config by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2463](https://togithub.com/charliermarsh/ruff/pull/2463) ##### Bug Fixes - Trigger, but don't fix, SIM rules if comments are present by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2450](https://togithub.com/charliermarsh/ruff/pull/2450) - Only avoid PEP604 rewrites for pre-Python 3.10 code by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2449](https://togithub.com/charliermarsh/ruff/pull/2449) - Use LibCST to reverse Yoda conditions by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2468](https://togithub.com/charliermarsh/ruff/pull/2468) - fix: assertTrue()/assertFalse() fixer should not test for identity by [@spaceone](https://togithub.com/spaceone) in [https://github.com/charliermarsh/ruff/pull/2476](https://togithub.com/charliermarsh/ruff/pull/2476) - Treat `if 0:` and `if False:` as type-checking blocks by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2485](https://togithub.com/charliermarsh/ruff/pull/2485) - Avoid iterating over body twice by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2439](https://togithub.com/charliermarsh/ruff/pull/2439) - more builtin name checks when autofixing by [@spaceone](https://togithub.com/spaceone) in [https://github.com/charliermarsh/ruff/pull/2430](https://togithub.com/charliermarsh/ruff/pull/2430) - Respect parent noqa in --add-noqa by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2464](https://togithub.com/charliermarsh/ruff/pull/2464) - Avoid removing un-selected codes when applying `--add-noqa` edits by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2465](https://togithub.com/charliermarsh/ruff/pull/2465) - Carry-over `ignore` to next config layer if `select = []` by [@not-my-profile](https://togithub.com/not-my-profile) in [https://github.com/charliermarsh/ruff/pull/2467](https://togithub.com/charliermarsh/ruff/pull/2467) - Visit NamedExpr values before targets by [@charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/2484](https://togithub.com/charliermarsh/ruff/pull/2484) #### New Contributors - [@reidswan](https://togithub.com/reidswan) made their first contribution in [https://github.com/charliermarsh/ruff/pull/2440](https://togithub.com/charliermarsh/ruff/pull/2440) - [@chanman3388](https://togithub.com/chanman3388) made their first contribution in [https://github.com/charliermarsh/ruff/pull/2445](https://togithub.com/charliermarsh/ruff/pull/2445) **Full Changelog**: https://github.com/charliermarsh/ruff/compare/v0.0.239...v0.0.240Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.