Skip to content
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

Update ruff to 0.6.2 #5316

Merged
merged 4 commits into from
Aug 23, 2024
Merged

Update ruff to 0.6.2 #5316

merged 4 commits into from
Aug 23, 2024

Conversation

pyup-bot
Copy link
Collaborator

This PR updates ruff from 0.6.1 to 0.6.2.

Changelog

0.6.2

Preview features

- \[`flake8-simplify`\] Extend `open-file-with-context-handler` to work with other standard-library IO modules (`SIM115`) ([12959](https://github.com/astral-sh/ruff/pull/12959))
- \[`ruff`\] Avoid `unused-async` for functions with FastAPI route decorator (`RUF029`) ([12938](https://github.com/astral-sh/ruff/pull/12938))
- \[`ruff`\] Ignore `fstring-missing-syntax` (`RUF027`) for `fastAPI` paths ([12939](https://github.com/astral-sh/ruff/pull/12939))
- \[`ruff`\] Implement check for Decimal called with a float literal (RUF032) ([12909](https://github.com/astral-sh/ruff/pull/12909))

Rule changes

- \[`flake8-bugbear`\] Update diagnostic message when expression is at the end of function (`B015`) ([12944](https://github.com/astral-sh/ruff/pull/12944))
- \[`flake8-pyi`\] Skip type annotations in `string-or-bytes-too-long` (`PYI053`) ([13002](https://github.com/astral-sh/ruff/pull/13002))
- \[`flake8-type-checking`\] Always recognise relative imports as first-party ([12994](https://github.com/astral-sh/ruff/pull/12994))
- \[`flake8-unused-arguments`\] Ignore unused arguments on stub functions (`ARG001`) ([12966](https://github.com/astral-sh/ruff/pull/12966))
- \[`pylint`\] Ignore augmented assignment for `self-cls-assignment` (`PLW0642`) ([12957](https://github.com/astral-sh/ruff/pull/12957))

Server

- Show full context in error log messages ([13029](https://github.com/astral-sh/ruff/pull/13029))

Bug fixes

- \[`pep8-naming`\] Don't flag `from` imports following conventional import names (`N817`) ([12946](https://github.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://github.com/astral-sh/ruff/pull/12958))

Documentation

- Add `hyperfine` installation instructions; update `hyperfine` code samples ([13034](https://github.com/astral-sh/ruff/pull/13034))
- Expand note to use Ruff with other language server in Kate ([12806](https://github.com/astral-sh/ruff/pull/12806))
- Update example for `PT001` as per the new default behavior ([13019](https://github.com/astral-sh/ruff/pull/13019))
- \[`perflint`\] Improve docs for `try-except-in-loop` (`PERF203`) ([12947](https://github.com/astral-sh/ruff/pull/12947))
- \[`pydocstyle`\] Add reference to `lint.pydocstyle.ignore-decorators` setting to rule docs ([12996](https://github.com/astral-sh/ruff/pull/12996))
Links

@browniebroke browniebroke merged commit e869ad8 into master Aug 23, 2024
12 of 14 checks passed
@browniebroke browniebroke deleted the pyup-update-ruff-0.6.1-to-0.6.2 branch August 23, 2024 06:33
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.

2 participants