Skip to content

Update ruff to 0.11.7 #5800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

pyup-bot
Copy link
Collaborator

This PR updates ruff from 0.11.4 to 0.11.7.

Changelog

0.11.7

Preview features

- \[`airflow`\] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR301`) ([17355](https://github.com/astral-sh/ruff/pull/17355))
- \[`perflint`\] Implement fix for `manual-dict-comprehension` (`PERF403`) ([16719](https://github.com/astral-sh/ruff/pull/16719))
- [syntax-errors] Make duplicate parameter names a semantic error ([17131](https://github.com/astral-sh/ruff/pull/17131))

Bug fixes

- \[`airflow`\] Fix typos in provider package names (`AIR302`, `AIR312`) ([17574](https://github.com/astral-sh/ruff/pull/17574))
- \[`flake8-type-checking`\] Visit keyword arguments in checks involving `typing.cast`/`typing.NewType` arguments ([17538](https://github.com/astral-sh/ruff/pull/17538))
- \[`pyupgrade`\] Preserve parenthesis when fixing native literals containing newlines (`UP018`) ([17220](https://github.com/astral-sh/ruff/pull/17220))
- \[`refurb`\] Mark the `FURB161` fix unsafe except for integers and booleans ([17240](https://github.com/astral-sh/ruff/pull/17240))

Rule changes

- \[`perflint`\] Allow list function calls to be replaced with a comprehension (`PERF401`) ([17519](https://github.com/astral-sh/ruff/pull/17519))
- \[`pycodestyle`\] Auto-fix redundant boolean comparison (`E712`) ([17090](https://github.com/astral-sh/ruff/pull/17090))
- \[`pylint`\] make fix unsafe if delete comments (`PLR1730`) ([17459](https://github.com/astral-sh/ruff/pull/17459))

Documentation

- Add fix safety sections to docs for several rules ([17410](https://github.com/astral-sh/ruff/pull/17410),[#17440](https://github.com/astral-sh/ruff/pull/17440),[#17441](https://github.com/astral-sh/ruff/pull/17441),[#17443](https://github.com/astral-sh/ruff/pull/17443),[#17444](https://github.com/astral-sh/ruff/pull/17444))

0.11.6

Preview features

- Avoid adding whitespace to the end of a docstring after an escaped quote ([17216](https://github.com/astral-sh/ruff/pull/17216))
- \[`airflow`\] Extract `AIR311` from `AIR301` rules (`AIR301`, `AIR311`) ([17310](https://github.com/astral-sh/ruff/pull/17310), [#17422](https://github.com/astral-sh/ruff/pull/17422))

Bug fixes

- Raise syntax error when `\` is at end of file ([17409](https://github.com/astral-sh/ruff/pull/17409))

0.11.5

Preview features

- \[`airflow`\] Add missing `AIR302` attribute check ([17115](https://github.com/astral-sh/ruff/pull/17115))
- \[`airflow`\] Expand module path check to individual symbols (`AIR302`) ([17278](https://github.com/astral-sh/ruff/pull/17278))
- \[`airflow`\] Extract `AIR312` from `AIR302` rules (`AIR302`, `AIR312`) ([17152](https://github.com/astral-sh/ruff/pull/17152))
- \[`airflow`\] Update oudated `AIR301`, `AIR302` rules ([17123](https://github.com/astral-sh/ruff/pull/17123))
- [syntax-errors] Async comprehension in sync comprehension ([17177](https://github.com/astral-sh/ruff/pull/17177))
- [syntax-errors] Check annotations in annotated assignments ([17283](https://github.com/astral-sh/ruff/pull/17283))
- [syntax-errors] Extend annotation checks to `await` ([17282](https://github.com/astral-sh/ruff/pull/17282))

Bug fixes

- \[`flake8-pie`\] Avoid false positive for multiple assignment with `auto()` (`PIE796`) ([17274](https://github.com/astral-sh/ruff/pull/17274))

Rule changes

- \[`ruff`\] Fix `RUF100` to detect unused file-level `noqa` directives with specific codes (17042) ([17061](https://github.com/astral-sh/ruff/pull/17061))
- \[`flake8-pytest-style`\] Avoid false positive for legacy form of `pytest.raises` (`PT011`) ([17231](https://github.com/astral-sh/ruff/pull/17231))

Documentation

- Fix formatting of "See Style Guide" link ([17272](https://github.com/astral-sh/ruff/pull/17272))
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant