Skip to content

Conversation

@dependabot-preview
Copy link
Contributor

Bumps wemake-python-styleguide from 0.14.1 to 0.15.1.

Release notes

Sourced from wemake-python-styleguide's releases.

Version 0.15.1

Bugfixes

  • Fixes dataclasses import, it was failing on python3.6
  • Fixes InconsistentComprehensionViolation work with async comprehensions
  • Fixes nested compehensions support for InconsistentComprehensionViolation
  • Fixes multiple if support for InconsistentComprehensionViolation
  • Fixes that NestedTernaryViolation was not reported for a comprehension
  • Fixes that ConstantConditionViolation was not reported for a comprehension
  • Fixes that ConstantConditionViolation was triggering for while x := True:
  • Fixes that UselessElseViolation was not reported for for, while, and try keywords
  • Fixes false positive InfiniteWhileLoopViolation for try #1857
  • Fixes that InfiniteWhileLoopViolation was not triggered on 1 or other truthy nodes

Misc

  • Refactors how tokenize tests are executed, now we have an option to compile fixture code to make sure it is syntatically valid
Changelog

Sourced from wemake-python-styleguide's changelog.

0.15.1

Bugfixes

  • Fixes dataclasses import, it was failing on python3.6
  • Fixes InconsistentComprehensionViolation work with async comprehensions
  • Fixes nested compehensions support for InconsistentComprehensionViolation
  • Fixes multiple if support for InconsistentComprehensionViolation
  • Fixes that NestedTernaryViolation was not reported for a comprehension
  • Fixes that ConstantConditionViolation was not reported for a comprehension
  • Fixes that ConstantConditionViolation was triggering for while x := True:
  • Fixes that UselessElseViolation was not reported for for, while, and try keywords
  • Fixes false positive InfiniteWhileLoopViolation for try #1857
  • Fixes that InfiniteWhileLoopViolation was not triggered on 1 or other truthy nodes

Misc

  • Refactors how tokenize tests are executed, now we have an option to compile fixture code to make sure it is syntatically valid

0.15.0 aka python3.9

Features

  • Adds python3.9 support
  • Forbids to use new-style decorators on python3.9
  • Changes how we treat own/foreign attributes, since now we only check assigned attribute names for self/cls/mcs, but not any other ones. So, now writting point.x = 1 will not trigger any violations. Previously, it would raise "too short name".
  • Forbids using non-trivial expressions as an argument to except
  • Forbids using too many variables in a tuple unpacking
  • Forbids using float("NaN").
  • Forbids assigning to a slice
  • Allow __call__ method to be asynchronous
  • Allows common strings not to be counted against string constant overuse limit
  • Forbids to unpack iterable objects to lists #1259
  • Forbids to use single return None
  • Add __await__ to the list of priority magic methods
  • Forbids to use float zeros (0.0)
  • Forbids raise Exception and raise BaseException
  • Forbids to use % with zero as the divisor
  • Forbids testing conditions to just return booleans when it is possible to simply return the condition itself
  • Forbids to use unsafe infinite loops

... (truncated)

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 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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Feb 13, 2021
@thepabloaguilar thepabloaguilar mentioned this pull request Feb 13, 2021
@dependabot-preview
Copy link
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot-preview dependabot-preview bot deleted the dependabot/pip/wemake-python-styleguide-0.15.1 branch February 13, 2021 21:31
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

Development

Successfully merging this pull request may close these issues.

1 participant