astral-sh/ruff (ruff)
### [`v0.6.2`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#062)
[Compare Source](https://togithub.com/astral-sh/ruff/compare/0.6.1...0.6.2)
##### Preview features
- \[`flake8-simplify`] Extend `open-file-with-context-handler` to work with other standard-library IO modules (`SIM115`) ([#12959](https://togithub.com/astral-sh/ruff/pull/12959))
- \[`ruff`] Avoid `unused-async` for functions with FastAPI route decorator (`RUF029`) ([#12938](https://togithub.com/astral-sh/ruff/pull/12938))
- \[`ruff`] Ignore `fstring-missing-syntax` (`RUF027`) for `fastAPI` paths ([#12939](https://togithub.com/astral-sh/ruff/pull/12939))
- \[`ruff`] Implement check for Decimal called with a float literal (RUF032) ([#12909](https://togithub.com/astral-sh/ruff/pull/12909))
##### Rule changes
- \[`flake8-bugbear`] Update diagnostic message when expression is at the end of function (`B015`) ([#12944](https://togithub.com/astral-sh/ruff/pull/12944))
- \[`flake8-pyi`] Skip type annotations in `string-or-bytes-too-long` (`PYI053`) ([#13002](https://togithub.com/astral-sh/ruff/pull/13002))
- \[`flake8-type-checking`] Always recognise relative imports as first-party ([#12994](https://togithub.com/astral-sh/ruff/pull/12994))
- \[`flake8-unused-arguments`] Ignore unused arguments on stub functions (`ARG001`) ([#12966](https://togithub.com/astral-sh/ruff/pull/12966))
- \[`pylint`] Ignore augmented assignment for `self-cls-assignment` (`PLW0642`) ([#12957](https://togithub.com/astral-sh/ruff/pull/12957))
##### Server
- Show full context in error log messages ([#13029](https://togithub.com/astral-sh/ruff/pull/13029))
##### Bug fixes
- \[`pep8-naming`] Don't flag `from` imports following conventional import names (`N817`) ([#12946](https://togithub.com/astral-sh/ruff/pull/12946))
- \[`pylint`] - Allow `__new__` methods to have `cls` as their first argument even if decorated with `@staticmethod` for `bad-staticmethod-argument` (`PLW0211`) ([#12958](https://togithub.com/astral-sh/ruff/pull/12958))
##### Documentation
- Add `hyperfine` installation instructions; update `hyperfine` code samples ([#13034](https://togithub.com/astral-sh/ruff/pull/13034))
- Expand note to use Ruff with other language server in Kate ([#12806](https://togithub.com/astral-sh/ruff/pull/12806))
- Update example for `PT001` as per the new default behavior ([#13019](https://togithub.com/astral-sh/ruff/pull/13019))
- \[`perflint`] Improve docs for `try-except-in-loop` (`PERF203`) ([#12947](https://togithub.com/astral-sh/ruff/pull/12947))
- \[`pydocstyle`] Add reference to `lint.pydocstyle.ignore-decorators` setting to rule docs ([#12996](https://togithub.com/astral-sh/ruff/pull/12996))
### [`v0.6.1`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#061)
[Compare Source](https://togithub.com/astral-sh/ruff/compare/0.6.0...0.6.1)
This is a hotfix release to address an issue with `ruff-pre-commit`. In v0.6,
Ruff changed its behavior to lint and format Jupyter notebooks by default;
however, due to an oversight, these files were still excluded by default if
Ruff was run via pre-commit, leading to inconsistent behavior.
This has [now been fixed](https://togithub.com/astral-sh/ruff-pre-commit/pull/96).
##### Preview features
- \[`fastapi`] Implement `fast-api-unused-path-parameter` (`FAST003`) ([#12638](https://togithub.com/astral-sh/ruff/pull/12638))
##### Rule changes
- \[`pylint`] Rename `too-many-positional` to `too-many-positional-arguments` (`R0917`) ([#12905](https://togithub.com/astral-sh/ruff/pull/12905))
##### Server
- Fix crash when applying "fix-all" code-action to notebook cells ([#12929](https://togithub.com/astral-sh/ruff/pull/12929))
##### Other changes
- \[`flake8-naming`]: Respect import conventions (`N817`) ([#12922](https://togithub.com/astral-sh/ruff/pull/12922))
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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 contains the following updates:
==0.6.0
->==0.6.2
Release Notes
astral-sh/ruff (ruff)
### [`v0.6.2`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#062) [Compare Source](https://togithub.com/astral-sh/ruff/compare/0.6.1...0.6.2) ##### Preview features - \[`flake8-simplify`] Extend `open-file-with-context-handler` to work with other standard-library IO modules (`SIM115`) ([#12959](https://togithub.com/astral-sh/ruff/pull/12959)) - \[`ruff`] Avoid `unused-async` for functions with FastAPI route decorator (`RUF029`) ([#12938](https://togithub.com/astral-sh/ruff/pull/12938)) - \[`ruff`] Ignore `fstring-missing-syntax` (`RUF027`) for `fastAPI` paths ([#12939](https://togithub.com/astral-sh/ruff/pull/12939)) - \[`ruff`] Implement check for Decimal called with a float literal (RUF032) ([#12909](https://togithub.com/astral-sh/ruff/pull/12909)) ##### Rule changes - \[`flake8-bugbear`] Update diagnostic message when expression is at the end of function (`B015`) ([#12944](https://togithub.com/astral-sh/ruff/pull/12944)) - \[`flake8-pyi`] Skip type annotations in `string-or-bytes-too-long` (`PYI053`) ([#13002](https://togithub.com/astral-sh/ruff/pull/13002)) - \[`flake8-type-checking`] Always recognise relative imports as first-party ([#12994](https://togithub.com/astral-sh/ruff/pull/12994)) - \[`flake8-unused-arguments`] Ignore unused arguments on stub functions (`ARG001`) ([#12966](https://togithub.com/astral-sh/ruff/pull/12966)) - \[`pylint`] Ignore augmented assignment for `self-cls-assignment` (`PLW0642`) ([#12957](https://togithub.com/astral-sh/ruff/pull/12957)) ##### Server - Show full context in error log messages ([#13029](https://togithub.com/astral-sh/ruff/pull/13029)) ##### Bug fixes - \[`pep8-naming`] Don't flag `from` imports following conventional import names (`N817`) ([#12946](https://togithub.com/astral-sh/ruff/pull/12946)) - \[`pylint`] - Allow `__new__` methods to have `cls` as their first argument even if decorated with `@staticmethod` for `bad-staticmethod-argument` (`PLW0211`) ([#12958](https://togithub.com/astral-sh/ruff/pull/12958)) ##### Documentation - Add `hyperfine` installation instructions; update `hyperfine` code samples ([#13034](https://togithub.com/astral-sh/ruff/pull/13034)) - Expand note to use Ruff with other language server in Kate ([#12806](https://togithub.com/astral-sh/ruff/pull/12806)) - Update example for `PT001` as per the new default behavior ([#13019](https://togithub.com/astral-sh/ruff/pull/13019)) - \[`perflint`] Improve docs for `try-except-in-loop` (`PERF203`) ([#12947](https://togithub.com/astral-sh/ruff/pull/12947)) - \[`pydocstyle`] Add reference to `lint.pydocstyle.ignore-decorators` setting to rule docs ([#12996](https://togithub.com/astral-sh/ruff/pull/12996)) ### [`v0.6.1`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#061) [Compare Source](https://togithub.com/astral-sh/ruff/compare/0.6.0...0.6.1) This is a hotfix release to address an issue with `ruff-pre-commit`. In v0.6, Ruff changed its behavior to lint and format Jupyter notebooks by default; however, due to an oversight, these files were still excluded by default if Ruff was run via pre-commit, leading to inconsistent behavior. This has [now been fixed](https://togithub.com/astral-sh/ruff-pre-commit/pull/96). ##### Preview features - \[`fastapi`] Implement `fast-api-unused-path-parameter` (`FAST003`) ([#12638](https://togithub.com/astral-sh/ruff/pull/12638)) ##### Rule changes - \[`pylint`] Rename `too-many-positional` to `too-many-positional-arguments` (`R0917`) ([#12905](https://togithub.com/astral-sh/ruff/pull/12905)) ##### Server - Fix crash when applying "fix-all" code-action to notebook cells ([#12929](https://togithub.com/astral-sh/ruff/pull/12929)) ##### Other changes - \[`flake8-naming`]: Respect import conventions (`N817`) ([#12922](https://togithub.com/astral-sh/ruff/pull/12922))Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.