build(deps): update dependency ruff to v0.7.0 #767
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.6.9->0.7.0Release Notes
astral-sh/ruff (ruff)
v0.7.0Compare Source
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
PT001andPT023now default to omitting the decorator parentheses when there are no arguments(#12838, #13292).
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
See the blog post for more details.
useless-try-exceptrule (in ourtryceratopscategory) has been recoded fromTRY302toTRY203(#13502). This ensures Ruff's code is consistent withthe same rule in the
tryceratopslinter.lint.allow-unused-importssetting has been removed (#13677). Uselint.pyflakes.allow-unused-importsinstead.
Formatter preview style
Preview linter features
refurb] implementhardcoded-string-charset(FURB156) (#13530)refurb] Count codepoints not bytes forslice-to-remove-prefix-or-suffix (FURB188)(#13631)Rule changes
pylint] MarkPLE1141fix as unsafe (#13629)flake8-async] Consider async generators to be "checkpoints" forcancel-scope-no-checkpoint(ASYNC100) (#13639)flake8-bugbear] Do not suggest setting parameterstrict=toFalseinB905diagnostic message (#13656)flake8-todos] Only flag the word "TODO", not words starting with "todo" (TD006) (#13640)pycodestyle] Fix whitespace-related false positives and false negatives inside type-parameter lists (E231,E251) (#13704)flake8-simplify] Stabilize preview behavior forSIM115so that the rule can detect filesbeing opened from a wider range of standard-library functions (#12959).
CLI
--statisticscommand (#13774)Bug fixes
pyflakes] Allowipytestcell magic (F401) (#13745)flake8-use-pathlib] FixPTH123false positive whenopenis passed a file descriptor (#13616)flake8-bandit] Detect patterns from multi line SQL statements (S608) (#13574)flake8-pyi] - Fix dropped expressions inPYI030autofix (#13727)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 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 Renovate Bot.