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.
Created by
brew bump
Created with
brew bump-formula-pr
.release notes
Rules
flake8-pyi
]PYI019
: Detects if a type variable is used instead ofSelf
in return annotations by @qdegraaf in [flake8-pyi
] Implementcustom_type_var_return_type
(PYI019
) astral-sh/ruff#6204flake8-pyi
]PYI051
: Detects unions ofLiteral
types by @LaBatata101 in [flake8-pyi
] Implement PYI051 astral-sh/ruff#6215flake8-pyi
]PYI055
: Detects unions oftype
s by @LaBatata101 in [flake8-pyi
] Implement PYI055 astral-sh/ruff#6316pylint
]E1300
: Detects invalid string format characters by @silvanocerza in [pylint
] Implement Pylintbad-format-character
(E1300
) astral-sh/ruff#6171pyupgrade
]UP040
: Upgrades type alias annotations to use PEP-695 syntax by @zanieb in Add rule to upgrade type alias annotations to keyword (UP040) astral-sh/ruff#6289Rule Changes
flake8-boolean-trap
]FBT003
: Addis_
andis_not
to excluded functions by @zanieb in Addis_
andis_not
to excluded functions forFBT003
astral-sh/ruff#6307flake8-logging-format
] Allow capitalized names for logger candidate heuristic match by @charliermarsh in Allow capitalized names for logger candidate heuristic match astral-sh/ruff#6356flake8-pyi
] Applicable rules are now checked non-stub code by @andersk in Broaden appropriate flake8-pyi rules to check non-stub code too astral-sh/ruff#6297PYI013
:ellipsis-in-non-empty-class-body
PYI016
:duplicate-union-member
PYI018
:unused-private-type-var
PYI019
:custom-type-var-return-type
PYI024
:collections-named-tuple
PYI025
:unaliased-collections-abc-set-import
PYI030
:unnecessary-literal-union
PYI032
:any-eq-ne-annotation
PYI034
:non-self-return-type
PYI036
:bad-exit-annotation
PYI041
:redundant-numeric-union
PYI042
:snake-case-type-alias
PYI043
:t-suffixed-type-alias
PYI045
:iter-method-return-iterable
PYI046
:unused-private-protocol
PYI047
:unused-private-type-alias
PYI049
:unused-private-typed-dict
PYI050
:no-return-argument-annotation-in-stub
(Python ≥ 3.11)PYI051
:redundant-literal-union
PYI056
:unsupported-method-call-on-all
flake8-pyi
]PYI027
is being replaced byPYI022
/UP035
by @LaBatata101 in [flake8-pyi
] Add tests cases for bad imports from PYI027 to PYI022 (UP035) astral-sh/ruff#6354pydocstyle
]D103
: Don't require docstrings in.pyi
files by @charliermarsh in Don't require docstrings in.pyi
files astral-sh/ruff#6239pydocstyle
]D203
: Ignore same-line docstrings for lines-before and lines-after rules by @charliermarsh in Ignore same-line docstrings for lines-before and lines-after rules astral-sh/ruff#6344pylint
]PLE0605
: Allow generic tuple and list calls in__all__
by @charliermarsh in Allow generic tuple and list calls in __all__ astral-sh/ruff#6247pylint
]PLR0124
: Add detection of comparisons with built-in calls by @charliermarsh in Flagcomparison-with-itself
on builtin calls astral-sh/ruff#6324pyupgrade
]UP032
: Add support forawait
expressions in f-strings by @harupy in UpdateUP032
to supportawait
expressions astral-sh/ruff#6304pyupgrade
]UP032
: Add support for implicitly concatenated strings by @harupy in ExtendUP032
to support implicitly concatenated strings astral-sh/ruff#6263pyupgrade
]UP032
: Add support for repeated format fields by @harupy in ExtendUP032
to support repeated format fields astral-sh/ruff#6266ruff
]RUF012
: PermitClassVar
andFinal
without subscript by @bluetech in PermitClassVar
andFinal
without subscript in RUF012 astral-sh/ruff#6273Bug Fixes
flake8-bugbear
]B006
: Respecttyping_extensions
imports ofAnnotated
by @PIG208 in Respect typing_extensions imports of Annotated for B006. astral-sh/ruff#6361flake8-pyi
]PYI019
: Fix panic with positional-only arguments by @charliermarsh in Avoid panic with positional-only arguments inPYI019
astral-sh/ruff#6350flake8-use-pathlib
] Avoid raisingPTH206
withmaxsplit
by @charliermarsh in AvoidPTH206
withmaxsplit
astral-sh/ruff#6283flake8
]F841
: Update autofix to not remove Jupyer magic expressions by @dhruvmanila in UpdateF841
autofix to not remove line magic expr astral-sh/ruff#6141pycodestyle
]E721
: Include comparisons to builtin types by @charliermarsh in Include comparisons to builtin types intype-comparison
rule astral-sh/ruff#6325pycodestyle
]E721
: Match left-hand sidetypes()
call intypes-comparison
by @charliermarsh in Match left-hand sidetypes()
call intypes-comparison
astral-sh/ruff#6326pyupgrade
]UP031
: Avoid auto-fixing if there are comments within the right-hand side by @harupy in Avoid auto-fixing UP031 if there are comments within the right-hand side astral-sh/ruff#6364pyupgrade
]UP032
: Avoid auto-fixing if comments are present around format call arguments by @harupy in Avoid auto-fixing UP032 if comments are present around format call arguments astral-sh/ruff#6342pyupgrade
]UP032
: Improve invalid expression check by @harupy in More precise invalid expression check forUP032
astral-sh/ruff#6308.format(...)
calls with too-few-arguments by @charliermarsh in Avoid attempting to fix.format(...)
calls with too-few-arguments astral-sh/ruff#6401.gitignore
files in parent directories were incorrectly used by @charliermarsh in Revert change torequire_git(false)
inWalkBuilder
astral-sh/ruff#6368Union
expressions by @charliermarsh in Extend nested union detection to handle bitwise orUnion
expressions astral-sh/ruff#6399Playground
Other Changes
Jupyter
mode while parsing Notebook files astral-sh/ruff#5552New Contributors
pylint
] Implement Pylintbad-format-character
(E1300
) astral-sh/ruff#6171Full Changelog: astral-sh/ruff@v0.0.282...v0.0.283