chore(deps): update dependency wemake-python-styleguide to v0.19.2
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
wemake-python-styleguide (source) |
==0.18.0 -> ==0.19.2
|
Release Notes
wemake-services/wemake-python-styleguide
v0.19.2
Bugfixes
- Fixes
WrongEmptyLinesCountViolation
crash onCallable[..., ...]
#2899
v0.19.1
This release fixes how ...
is used. For example, it is common to define
function stubs / protocols like this:
def some_function(): ...
Now, ...
will be excluded from several rules.
Bugfixes
- Fixes
TooDeepNestingViolation
not to trigger on...
in functions and classes - Fixes
StatementHasNoEffectViolation
not to trigger on...
in functions and classes, when it is the only node
v0.19.0
This minor version will be the last release with all the flake8
plugins.
In the future this project will be migrated to be used together with ruff
.
Features
- Adds official
python3.12
support -
Breaking: drops
python3.8
support -
Breaking: Reconsider
object
required base class exception: sinceclass Klass[_Type]
must not containobject
, this rule is change to be the opposite:object
explicit base class must not be used. You can useruff
to change allobject
-based types to the new style:ruff check --select=UP004 --fix .
https://docs.astral.sh/ruff/rules/useless-object-inheritance/ -
Breaking: allow positional-only parameters,
since it is required by
mypy
when usingConcatenate
- Adds support for naming rules for PEP695 type params
- Due to how
f
-string are parsed inpython3.12
several token-based violations are not reported anymore for them:WrongMultilineStringViolation
,ImplicitRawStringViolation
,WrongUnicodeEscapeViolation
,RawStringNotNeededViolation
-
wemake
output formatter now respectsNO_COLOR=1
option to disable text highlighting. See https://no-color.org - Adds
ImportObjectCollisionViolation
to detect the same objects imported under different aliases - Adds
reveal_locals
to the list of forbidden functions - Updates
flake8
to7.x
Bugfixes
- Fixes
ForbiddenInlineIgnoreViolation
config parsing. #2590 - Fixes
WrongEmptyLinesCountViolation
for func definitions with ellipsis. #2847 - Fixes
WrongEmptyLinesCountViolation
for multiline implicit string concatination. #2787 - Fixes
ObjectInBaseClassesListViolation
,UnpythonicGetterSetterViolation
,ImplicitInConditionViolation
,RedundantSubscriptViolation
,TooLongCompareViolation
to include better error details - Fixes
TooDeepNestingViolation
forTryStar
andMatch
statements - Fixes
TooLongTryBodyViolation
andTooManyExceptCasesViolation
to work forTryStar
statements as well - Fixes
UselessNodeViolation
to work withTryStar
- Fixes
DuplicateExceptionViolation
to work withTryStar
- Fixes
TryExceptMultipleReturnPathViolation
to work withTryStar
- Fixes
IncorrectExceptOrderViolation
to work withTryStar
- Fixes that
MatchStar
was not checked in pattern matching name assignments - Fixes pattern matching support
in
BlockAndLocalOverlapViolation
andOuterScopeShadowingViolation
Misc
- Updates multiple
flake8-*
dependencies - Fixes multiple typos in docs
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Kubitus Bot