Update dependency ruff to ^0.0.289 #81
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.0.286->^0.0.289Release Notes
astral-sh/ruff (ruff)
v0.0.289Compare Source
What's Changed
Bug Fixes
@overridemethod when enforcingbad-dunder-namerule by @brendonh8 in https://github.com/astral-sh/ruff/pull/7224NotebookIndexto the cache by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6863Preview
This release includes a new preview mode which can be used to opt-in to unstable rules and features.
--previewoption in the CLI help menu by @zanieb in https://github.com/astral-sh/ruff/pull/7274See the documentation and versioning discussion for more details.
New Contributors
Full Changelog: astral-sh/ruff@v0.0.288...v0.0.289
v0.0.288Compare Source
What's Changed
Breaking Changes
Rules
ruff]RUF001: Remove autofix for ambiguous unicode rule by @charliermarsh in https://github.com/astral-sh/ruff/pull/7168Settings
flake8-self]SLF001: Addextend-ignore-namesoption by @jaap3 in https://github.com/astral-sh/ruff/pull/7194Bug Fixes
flake8-bugbear]B006: Add newline if fix is at end-of-file by @charliermarsh in https://github.com/astral-sh/ruff/pull/7090B006: Fix function docstring followed by whitespace but no newline by @zanieb in https://github.com/astral-sh/ruff/pull/7160B009: Parenthesize expressions when converting to attribute access by @charliermarsh in https://github.com/astral-sh/ruff/pull/7091B009,B010: Fixgetattrcalls onintliterals by @density in https://github.com/astral-sh/ruff/pull/7057B013: Supported starred exceptions in length-one tuple detection by @charliermarsh in https://github.com/astral-sh/ruff/pull/7080B013: Insert required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7148flake8-comprehensions]C402: Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7152C404Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7185C416Add required space to fix by @charliermarsh in https://github.com/astral-sh/ruff/pull/7204C417: Support length-2 lists in dictionary comprehension rewrites by @charliermarsh in https://github.com/astral-sh/ruff/pull/7081C417: Parenthesize targets if necessary by @charliermarsh in https://github.com/astral-sh/ruff/pull/7189flake8-return]RET504: Add space after return when inlining number by @charliermarsh in https://github.com/astral-sh/ruff/pull/7116flake8-simplify]SIM105: Avoid attempting to fix violations with multi-statement lines by @charliermarsh in https://github.com/astral-sh/ruff/pull/7191SIM105Avoid inserting an extra newline for fixes by @charliermarsh in https://github.com/astral-sh/ruff/pull/7221SIM118: Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7150SIM118: delete.keys()rather than replace expression by @charliermarsh in https://github.com/astral-sh/ruff/pull/7223SIM210: Retain parentheses when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7118SIM222: Add parentheses when simplifying conditions by @charliermarsh in https://github.com/astral-sh/ruff/pull/7117SIM300: Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7167flake8-pytest-style]PT018: Split withinnot, rather than outside ofnotby @charliermarsh in https://github.com/astral-sh/ruff/pull/7151flynt]FLY002: Add required space for fixes by @charliermarsh in https://github.com/astral-sh/ruff/pull/7222numpy]NPY001: Avoid attempting to fix with overridden builtins by @charliermarsh in https://github.com/astral-sh/ruff/pull/7187NPY003: Use symbol import for replacement by @charliermarsh in https://github.com/astral-sh/ruff/pull/7083pandas-vet]PD002: Handle parenthesized calls by @charliermarsh in https://github.com/astral-sh/ruff/pull/7111pep8-naming]N806: Avoid triggering onTypeAliasassignments by @charliermarsh in https://github.com/astral-sh/ruff/pull/7119pydocstyle]D204: Fix when there's a semicolon after a docstring by @konstin in https://github.com/astral-sh/ruff/pull/7174D213,D400: Ignore single quote docstrings with newline escape by @konstin in https://github.com/astral-sh/ruff/pull/7173D417: Fix error with function docstrings with dashed lines by @eronnen in https://github.com/astral-sh/ruff/pull/7251pyflakes]F401: Avoid panic with noqa import name by @charliermarsh in https://github.com/astral-sh/ruff/pull/7260F841: Expand fixes to handle parenthesized targets by @charliermarsh in https://github.com/astral-sh/ruff/pull/7110pylint]PLW3301: Copy the starred argument as is for autofix by @dhruvmanila in https://github.com/astral-sh/ruff/pull/7177pyupgrade]UP006andUP007: Add required space to fixes by @charliermarsh in https://github.com/astral-sh/ruff/pull/7202UP007: Avoid attempting to fix invalidOptionalannotations by @charliermarsh in https://github.com/astral-sh/ruff/pull/7079UP007: Fix syntax error in autofix by @charliermarsh in https://github.com/astral-sh/ruff/pull/7137UP021: Avoid adding duplicatetextkeyword tosubprocess.runby @charliermarsh in https://github.com/astral-sh/ruff/pull/7112UP022: Avoid adding duplicatecapture_outputkeyword tosubprocess.runby @charliermarsh in https://github.com/astral-sh/ruff/pull/7113UP028: Support parenthesized expressions by @charliermarsh in https://github.com/astral-sh/ruff/pull/7114UP022: Avoid fixing whencapture_outputis provided by @charliermarsh in https://github.com/astral-sh/ruff/pull/7149UP024: Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7171ruff]RUF017: Avoid duplicate fixes for multi-import imports by @charliermarsh in https://github.com/astral-sh/ruff/pull/7063Other Changes
New Contributors
Full Changelog: astral-sh/ruff@v0.0.287...v0.0.288
v0.0.287Compare Source
What's Changed
Rules
repeated-appendrule (FURB113) by @SavchenkoValeriy in https://github.com/astral-sh/ruff/pull/6702delete-full-slicerule (FURB131) by @SavchenkoValeriy in https://github.com/astral-sh/ruff/pull/6897check-and-remove-from-setrule (FURB132) by @SavchenkoValeriy in https://github.com/astral-sh/ruff/pull/6904Bug Fixes
PERF401andPERF402with type checks by @qdegraaf in https://github.com/astral-sh/ruff/pull/6994typenameis provided as a keyword argument by @charliermarsh in https://github.com/astral-sh/ruff/pull/6955missing_copyright_noticeby @WindowGenerator in https://github.com/astral-sh/ruff/pull/7029WithItemranges for parenthesized, non-asitems by @charliermarsh in https://github.com/astral-sh/ruff/pull/6782New Contributors
Full Changelog: astral-sh/ruff@v0.0.286...v0.0.287
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 has been generated by Mend Renovate. View repository job log here.