Bump wemake-python-styleguide from 0.18.0 to 0.19.2
Bumps wemake-python-styleguide from 0.18.0 to 0.19.2.
Release notes
Sourced from wemake-python-styleguide's releases.
Version 0.19.2
Bugfixes
- Fixes
WrongEmptyLinesCountViolationcrash onCallable[..., ...]#2899Version 0.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
TooDeepNestingViolationnot to trigger on...in functions and classes- Fixes
StatementHasNoEffectViolationnot to trigger on...in functions and classes, when it is the only nodeVersion 0.19.0
This minor version will be the last release with all the
flake8plugins. In the future this project will be migrated to be used together withruff.Features
- Adds official
python3.12support- Breaking: drops
python3.8support- Breaking: Reconsider
objectrequired base class exception: sinceclass Klass[_Type]must not containobject, this rule is change to be the opposite:objectexplicit base class must not be used. You can useruffto 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
mypywhen usingConcatenate- Adds support for naming rules for PEP695 type params
- Due to how
f-string are parsed inpython3.12several token-based violations are not reported anymore for them:WrongMultilineStringViolation,ImplicitRawStringViolation,WrongUnicodeEscapeViolation,RawStringNotNeededViolationwemakeoutput formatter now respectsNO_COLOR=1option to disable text highlighting. See https://no-color.org- Adds
ImportObjectCollisionViolationto detect the same objects imported under different aliases- Adds
reveal_localsto the list of forbidden functions- Updates
flake8to7.x
... (truncated)
Changelog
Sourced from wemake-python-styleguide's changelog.
0.19.2
Bugfixes
- Fixes
WrongEmptyLinesCountViolationcrash onCallable[..., ...]#28990.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
TooDeepNestingViolationnot to trigger on...in functions and classes- Fixes
StatementHasNoEffectViolationnot to trigger on...in functions and classes, when it is the only node0.19.0
This minor version will be the last release with all the
flake8plugins. In the future this project will be migrated to be used together withruff.Features
- Adds official
python3.12support- Breaking: drops
python3.8support- Breaking: Reconsider
objectrequired base class exception: sinceclass Klass[_Type]must not containobject, this rule is change to be the opposite:objectexplicit base class must not be used. You can useruffto 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
mypywhen usingConcatenate- Adds support for naming rules for PEP695 type params
- Due to how
f-string are parsed inpython3.12several token-based violations are not reported anymore for them:WrongMultilineStringViolation,ImplicitRawStringViolation,WrongUnicodeEscapeViolation,RawStringNotNeededViolationwemakeoutput formatter now respectsNO_COLOR=1option
... (truncated)
Commits
18276e6Version 0.19.2 (#2900)99ba44eVersion 0.19.1 release8670471Do not reportWPS440when...is the only node in the function defition (...bdecb89Fix WPS220 for top-level Ellipsis (#2897)3e0565bImprove tests of pep695 (#2895)55d110bVersion 0.19.0 release30a0e79Update flake8bb8a278Support naming validation for PEP695 (#2894)884be48Fix pattern matching and block overlaps (#2893)3cf1b69SupportMatchStarnaming (#2892)- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.