-
Notifications
You must be signed in to change notification settings - Fork 2
chore(deps): update dependency wemake-python-styleguide to v0.19.2 #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
f5fe521 to
c783822
Compare
c783822 to
1644faf
Compare
1644faf to
dcde6f0
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: poetry.lock |
dcde6f0 to
03d23c5
Compare
03d23c5 to
e29a50a
Compare
e29a50a to
976db25
Compare
|
This PR contains the following updates:
0.16.0->0.19.2Release Notes
wemake-services/wemake-python-styleguide (wemake-python-styleguide)
v0.19.2Compare Source
Bugfixes
WrongEmptyLinesCountViolationcrash onCallable[..., ...]#2899v0.19.1Compare Source
This release fixes how
...is used. For example, it is common to definefunction stubs / protocols like this:
Now,
...will be excluded from several rules.Bugfixes
TooDeepNestingViolationnot to triggeron
...in functions and classesStatementHasNoEffectViolationnot to triggeron
...in functions and classes, when it is the only nodev0.19.0Compare Source
This minor version will be the last release with all the
flake8plugins.In the future this project will be migrated to be used together with
ruff.Features
python3.12supportpython3.8supportobjectrequired base class exception:since
class Klass[_Type]must not containobject,this rule is change to be the opposite:
objectexplicit base class must not be used.You can use
ruffto 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
mypywhen usingConcatenatef-string are parsed inpython3.12several token-basedviolations are not reported anymore for them:
UselessMultilineStringViolation,ImplicitRawStringViolation,WrongUnicodeEscapeViolation,RawStringNotNeededViolationwemakeoutput formatter now respectsNO_COLOR=1optionto disable text highlighting. See https://no-color.org
ImportObjectCollisionViolationto detectthe same objects imported under different aliases
reveal_localsto the list of forbidden functionsflake8to7.xBugfixes
ForbiddenInlineIgnoreViolationconfig parsing. #2590WrongEmptyLinesCountViolationfor func definitions with ellipsis. #2847WrongEmptyLinesCountViolationfor multiline implicit string concatenation. #2787ObjectInBaseClassesListViolation,UnpythonicGetterSetterViolation,ImplicitInConditionViolation,RedundantSubscriptViolation,TooLongCompareViolationto include better error detailsTooDeepNestingViolationforTryStarandMatchstatementsTooLongTryBodyViolationandTooManyExceptCasesViolationto work for
TryStarstatements as wellUselessNodeViolationto work withTryStarDuplicateExceptionViolationto work withTryStarTryExceptMultipleReturnPathViolationto work withTryStarIncorrectExceptOrderViolationto work withTryStarMatchStarwas not checked in pattern matching name assignmentsin
BlockAndLocalOverlapViolationandOuterScopeShadowingViolationMisc
flake8-*dependenciesv0.18.0Compare Source
Features
python3.7support, because it has almost reached its EOLpython3.11supportflake8to version5.xflake8-*dependencies to newer versionsChainedIsViolation#2443BuggySuperContextViolation#2310Bugfixes
generic_visit()check script properly handlewithstatements.Misc
flakehellmentions toflakeheaven#2409v0.17.0Compare Source
Features
python3.6support--show-violation-linksoption to show links to violation docs__init_subclass__in the beginning of accepted methodsorder as per WPS338 #2411
WrongEmptyLinesCountViolationto checkfor too many lines in functions and methods definitions #2486
Bugfixes
WPS226false positives on|use inSomeType | AnotherTypetype hints syntax
-1is not reported to be an overused expression__aiter__to be async iteratorYieldMagicMethodViolationMisc
BaseViolation.full_code#2409for
max-string-usagesand enforced rule #2456wemake-python-stylegui.deto
wemake-python-styleguide.rtfd.iov0.16.1Compare Source
Bugfixes
'Literal["raise"]'annotation #2341WPS471was not detected on complex assignment targets #2301flake8-banditandbanditversion conflict #2368Configuration
📅 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 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 was generated by Mend Renovate. View the repository job log.