Update wemake-services/wemake-python-styleguide action to v0.19.0 #17
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.18.0
->0.19.0
Release Notes
wemake-services/wemake-python-styleguide (wemake-services/wemake-python-styleguide)
v0.19.0
Compare Source
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
python3.12
supportpython3.8
supportobject
required base class exception:since
class Klass[_Type]
must not containobject
,this rule is change to be the opposite:
object
explicit base class must not be used.You can use
ruff
to change allobject
-based types to the new style:ruff check --select=UP004 --fix .
https://docs.astral.sh/ruff/rules/useless-object-inheritance/
since it is required by
mypy
when usingConcatenate
f
-string are parsed inpython3.12
several token-basedviolations are not reported anymore for them:
WrongMultilineStringViolation
,ImplicitRawStringViolation
,WrongUnicodeEscapeViolation
,RawStringNotNeededViolation
wemake
output formatter now respectsNO_COLOR=1
optionto disable text highlighting. See https://no-color.org
ImportObjectCollisionViolation
to detectthe same objects imported under different aliases
reveal_locals
to the list of forbidden functionsflake8
to7.x
Bugfixes
ForbiddenInlineIgnoreViolation
config parsing. #2590WrongEmptyLinesCountViolation
for func definitions with ellipsis. #2847WrongEmptyLinesCountViolation
for multiline implicit string concatination. #2787ObjectInBaseClassesListViolation
,UnpythonicGetterSetterViolation
,ImplicitInConditionViolation
,RedundantSubscriptViolation
,TooLongCompareViolation
to include better error detailsTooDeepNestingViolation
forTryStar
andMatch
statementsTooLongTryBodyViolation
andTooManyExceptCasesViolation
to work for
TryStar
statements as wellUselessNodeViolation
to work withTryStar
DuplicateExceptionViolation
to work withTryStar
TryExceptMultipleReturnPathViolation
to work withTryStar
IncorrectExceptOrderViolation
to work withTryStar
MatchStar
was not checked in pattern matching name assignmentsin
BlockAndLocalOverlapViolation
andOuterScopeShadowingViolation
Misc
flake8-*
dependenciesConfiguration
📅 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: Never, 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.