Skip to content

Bump wemake-python-styleguide from 1.0.0 to 1.2.0 #2186

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 3, 2025

Bumps wemake-python-styleguide from 1.0.0 to 1.2.0.

Release notes

Sourced from wemake-python-styleguide's releases.

1.2.0

Main changes

Due to PEP-695, it's now allowed to use [] in decorators only for python3.12+.

@MyClassDecorator[T, V]
def some_function(): ...

Features

  • Adds WPS243: forbids complex finally bodies, #3458
  • Adds WPS478: forbids using non strict slice operations, #1011
  • Adds WPS479: forbids using multiline fstrings, #3405
  • Adds WPS480: forbids using comments inside formatted string, #3404

Bugfixes

  • Removes unnecessary WPS604 and WPS614 rules from the noqa.py, #3420
  • Fixes WPS115 false-positive on StrEnum, IntEnum, IntFlag attributes, #3381
  • Fixes WPS432, now it ignores magic numbers in Literal, #3397
  • Fixes WPS466 for generic type specifications MyClassDecorator[T], #3417
  • Fixes WPS212 to ignore nested classes and functions when counting return statements, #3413
  • Improves WPS349 highlighting, #3437

New Contributors

Full Changelog: wemake-services/wemake-python-styleguide@1.1.0...1.2.0

Version 1.1.0 with wps explain CLI

Command line utility

This version introduces wps CLI tool. wps explain <code> command can be used to access WPS violation docs (same as on website) but without any internet access.

Example output:

... (truncated)

Changelog

Sourced from wemake-python-styleguide's changelog.

1.2.0

Due to PEP-695, it's now allowed to use [] in decorators only for python3.12+.

@MyClassDecorator[T, V]
def some_function(): ...

Features

  • Adds WPS243: forbids complex finally bodies, #3458
  • Adds WPS478: forbids using non strict slice operations, #1011
  • Adds WPS479: forbids using multiline fstrings, #3405
  • Adds WPS480: forbids using comments inside formatted string, #3404

Bugfixes

  • Removes unnecessary WPS604 and WPS614 rules from the noqa.py, #3420
  • Fixes WPS115 false-positive on StrEnum, IntEnum, IntFlag attributes, #3381
  • Fixes WPS432, now it ignores magic numbers in Literal, #3397
  • Fixes WPS466 for generic type specifications MyClassDecorator[T], #3417
  • Fixes WPS212 to ignore nested classes and functions when counting return statements, #3413
  • Improves WPS349 highlighting, #3437

1.1.0

Command line utility

This version introduces wps CLI tool. wps explain <code> command can be used to access WPS violation docs (same as on website) but without any internet access.

Features

  • Adds WPS476: forbids to use await expressions in for loops, #1600
  • Adds WPS477: forbids TypeVarTuple after a TypeVar with a default, #3265

Bugfixes

  • Fixes WPS115 false-positive on Enum attributes, #3238
  • Removes duplicated WPS312, #3239
  • Fixes WPS432, now it shows literal num, #1402
  • Fixes WPS226, now it points to the first string literal occurrence, #3267
  • Fixes WPS605 false-positive on @staticmethod, #3292
  • Fixes _SELF name not to trigger WPS117, #3310
  • Fixes WPS221 being too strict with f-strings, #3350
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [wemake-python-styleguide](https://github.com/wemake-services/wemake-python-styleguide) from 1.0.0 to 1.2.0.
- [Release notes](https://github.com/wemake-services/wemake-python-styleguide/releases)
- [Changelog](https://github.com/wemake-services/wemake-python-styleguide/blob/master/CHANGELOG.md)
- [Commits](wemake-services/wemake-python-styleguide@1.0.0...1.2.0)

---
updated-dependencies:
- dependency-name: wemake-python-styleguide
  dependency-version: 1.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Development

Successfully merging this pull request may close these issues.

0 participants