Release notes
*Sourced from [wemake-python-styleguide's releases](https://github.com/wemake-services/wemake-python-styleguide/releases).*
> ## Version 0.10.0 aka The Great Compare
> This release is mostly targeted at writing better compares and conditions.
> We introduce a lot of new rules related to this topic improving:
> consistency, complexity, and general feel from your code.
>
> In this release we have ported a lot of existing `pylint` rules,
> big cudos to the developers of this wonderful tool.
>
> ### Features
>
> - Adds `flake8-executable` as a dependency
> - Adds `flake8-rst-docstrings` as a dependency
> - Validates options that are passed with `flake8`
> - Forbids to use module level mutable constants
> - Forbids to over-use strings
> - Forbids to use `breakpoint` function
> - Limits yield tuple lengths
> - Forbids to have too many `await` statements
> - Forbids to subclass lowercase `builtins`
> - Forbids to have useless `lambda`s
> - Forbids to use `len(sized) > 0` and `if len(sized)` style checks
> - Forbids to use repeatable conditions: `flag or flag`
> - Forbids to write conditions like `not some > 1`
> - Forbids to use heterogenous compares like `x == x > 0`
> - Forbids to use complex compare with several items (`>= 3`)
> - Forbids to have class variables that are shadowed by instance variables
> - Forbids to use ternary expressions inside `if` conditions
> - Forces to use ternary instead of `... and ... or ...` expression
> - Forces to use `c < b < a` instead of `a > b and b > c`
> - Forces to use `c < b < a` instead of `a > b > c`
> - Forbids to use explicit `in []` and `in ()`, use sets or variables instead
> - Forces to write `isinstance(some, (A, B))`
> instead of `isinstance(some, A) or isinstance(some, B)`
> - Forbids to use `isinstance(some (A,))`
> - Forces to merge `a == b or a == c` into `a in {b, c}` and
> to merge `a != b and a != c` into `a not in {b, c}`
>
> ### Bugfixes
>
> - Fixes incorrect line number for `Z331`
> - Fixes that `Z311` was not raising for multiple `not in` cases
> - Fixes a bunch of bugs for rules working with `Assign` and not `AnnAssign`
> - Fixes that `continue` was not triggering `UselessReturningElseViolation`
>
> ### Misc
>
> - Renames `logics/` to `logic/` since it is grammatically correct
> - Renames `Redundant` to `Useless`
> - Renames `Comparison` to `Compare`
> - Renames `WrongConditionalViolation` to `ConstantConditionViolation`
> ... (truncated)
Changelog
*Sourced from [wemake-python-styleguide's changelog](https://github.com/wemake-services/wemake-python-styleguide/blob/master/CHANGELOG.md).*
> ## 0.10.0 aka The Great Compare
>
> This release is mostly targeted at writing better compares and conditions.
> We introduce a lot of new rules related to this topic improving:
> consistency, complexity, and general feel from your code.
>
> In this release we have ported a lot of existing `pylint` rules,
> big cudos to the developers of this wonderful tool.
>
> ### Features
>
> - Adds `flake8-executable` as a dependency
> - Adds `flake8-rst-docstrings` as a dependency
> - Validates options that are passed with `flake8`
> - Forbids to use module level mutable constants
> - Forbids to over-use strings
> - Forbids to use `breakpoint` function
> - Limits yield tuple lengths
> - Forbids to have too many `await` statements
> - Forbids to subclass lowercase `builtins`
> - Forbids to have useless `lambda`s
> - Forbids to use `len(sized) > 0` and `if len(sized)` style checks
> - Forbids to use repeatable conditions: `flag or flag`
> - Forbids to write conditions like `not some > 1`
> - Forbids to use heterogenous compares like `x == x > 0`
> - Forbids to use complex compare with several items (`>= 3`)
> - Forbids to have class variables that are shadowed by instance variables
> - Forbids to use ternary expressions inside `if` conditions
> - Forces to use ternary instead of `... and ... or ...` expression
> - Forces to use `c < b < a` instead of `a > b and b > c`
> - Forces to use `c < b < a` instead of `a > b > c`
> - Forbids to use explicit `in []` and `in ()`, use sets or variables instead
> - Forces to write `isinstance(some, (A, B))`
> instead of `isinstance(some, A) or isinstance(some, B)`
> - Forbids to use `isinstance(some (A,))`
> - Forces to merge `a == b or a == c` into `a in {b, c}` and
> to merge `a != b and a != c` into `a not in {b, c}`
>
> ### Bugfixes
>
> - Fixes incorrect line number for `Z331`
> - Fixes that `Z311` was not raising for multiple `not in` cases
> - Fixes a bunch of bugs for rules working with `Assign` and not `AnnAssign`
> - Fixes that `continue` was not triggering `UselessReturningElseViolation`
>
> ### Misc
>
> - Renames `logics/` to `logic/` since it is grammatically correct
> - Renames `Redundant` to `Useless`
> - Renames `Comparison` to `Compare`
> ... (truncated)
Commits
- [`ceb257b`](https://github.com/wemake-services/wemake-python-styleguide/commit/ceb257b5d029fc7de89065146f1b1349d78f0a57) Version 0.10.0 release
- [`b65ef65`](https://github.com/wemake-services/wemake-python-styleguide/commit/b65ef65be1d3cf3ffcacb05d24e314d70dd8b8a6) Closes [#602](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/602)
- [`c9bfe3a`](https://github.com/wemake-services/wemake-python-styleguide/commit/c9bfe3a2b8ad40f68023a4e71a37bc4d42010ab8) Closes [#603](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/603), closes [#663](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/663)
- [`832fe26`](https://github.com/wemake-services/wemake-python-styleguide/commit/832fe26ec24759c73fb1cd7e5479dad61c00014f) Closes [#652](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/652)
- [`4b4099d`](https://github.com/wemake-services/wemake-python-styleguide/commit/4b4099ded86c1fccb8b0e075151b18b2db8514b9) Improves changelog
- [`fe49e4f`](https://github.com/wemake-services/wemake-python-styleguide/commit/fe49e4f86642871e318f21f258f39a2d4186da77) Closes [#661](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/661), closes [#653](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/653)
- [`96d7b43`](https://github.com/wemake-services/wemake-python-styleguide/commit/96d7b43a120eb92d11635701dabebc62feca15bc) Closes [#659](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/659)
- [`3d65c2f`](https://github.com/wemake-services/wemake-python-styleguide/commit/3d65c2fbbc43478c4fe7d0afcc818021dcacd7ef) Version 0.9.1 release ([#660](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/660))
- [`29184b2`](https://github.com/wemake-services/wemake-python-styleguide/commit/29184b209361da2b12b802443ee64722a4350e2e) Improves CONTRIBUTING
- [`33bf8c7`](https://github.com/wemake-services/wemake-python-styleguide/commit/33bf8c7560886da2e81b99cd7b7ea3df66a91b76) Closes [#628](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/628)
- Additional commits viewable in [compare view](https://github.com/wemake-services/wemake-python-styleguide/compare/0.9.1...0.10.0)
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 ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it). To ignore the version in this PR you can just close it
- `@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](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps wemake-python-styleguide from 0.9.1 to 0.10.0.
Release notes
*Sourced from [wemake-python-styleguide's releases](https://github.com/wemake-services/wemake-python-styleguide/releases).* > ## Version 0.10.0 aka The Great Compare > This release is mostly targeted at writing better compares and conditions. > We introduce a lot of new rules related to this topic improving: > consistency, complexity, and general feel from your code. > > In this release we have ported a lot of existing `pylint` rules, > big cudos to the developers of this wonderful tool. > > ### Features > > - Adds `flake8-executable` as a dependency > - Adds `flake8-rst-docstrings` as a dependency > - Validates options that are passed with `flake8` > - Forbids to use module level mutable constants > - Forbids to over-use strings > - Forbids to use `breakpoint` function > - Limits yield tuple lengths > - Forbids to have too many `await` statements > - Forbids to subclass lowercase `builtins` > - Forbids to have useless `lambda`s > - Forbids to use `len(sized) > 0` and `if len(sized)` style checks > - Forbids to use repeatable conditions: `flag or flag` > - Forbids to write conditions like `not some > 1` > - Forbids to use heterogenous compares like `x == x > 0` > - Forbids to use complex compare with several items (`>= 3`) > - Forbids to have class variables that are shadowed by instance variables > - Forbids to use ternary expressions inside `if` conditions > - Forces to use ternary instead of `... and ... or ...` expression > - Forces to use `c < b < a` instead of `a > b and b > c` > - Forces to use `c < b < a` instead of `a > b > c` > - Forbids to use explicit `in []` and `in ()`, use sets or variables instead > - Forces to write `isinstance(some, (A, B))` > instead of `isinstance(some, A) or isinstance(some, B)` > - Forbids to use `isinstance(some (A,))` > - Forces to merge `a == b or a == c` into `a in {b, c}` and > to merge `a != b and a != c` into `a not in {b, c}` > > ### Bugfixes > > - Fixes incorrect line number for `Z331` > - Fixes that `Z311` was not raising for multiple `not in` cases > - Fixes a bunch of bugs for rules working with `Assign` and not `AnnAssign` > - Fixes that `continue` was not triggering `UselessReturningElseViolation` > > ### Misc > > - Renames `logics/` to `logic/` since it is grammatically correct > - Renames `Redundant` to `Useless` > - Renames `Comparison` to `Compare` > - Renames `WrongConditionalViolation` to `ConstantConditionViolation` > ... (truncated)Changelog
*Sourced from [wemake-python-styleguide's changelog](https://github.com/wemake-services/wemake-python-styleguide/blob/master/CHANGELOG.md).* > ## 0.10.0 aka The Great Compare > > This release is mostly targeted at writing better compares and conditions. > We introduce a lot of new rules related to this topic improving: > consistency, complexity, and general feel from your code. > > In this release we have ported a lot of existing `pylint` rules, > big cudos to the developers of this wonderful tool. > > ### Features > > - Adds `flake8-executable` as a dependency > - Adds `flake8-rst-docstrings` as a dependency > - Validates options that are passed with `flake8` > - Forbids to use module level mutable constants > - Forbids to over-use strings > - Forbids to use `breakpoint` function > - Limits yield tuple lengths > - Forbids to have too many `await` statements > - Forbids to subclass lowercase `builtins` > - Forbids to have useless `lambda`s > - Forbids to use `len(sized) > 0` and `if len(sized)` style checks > - Forbids to use repeatable conditions: `flag or flag` > - Forbids to write conditions like `not some > 1` > - Forbids to use heterogenous compares like `x == x > 0` > - Forbids to use complex compare with several items (`>= 3`) > - Forbids to have class variables that are shadowed by instance variables > - Forbids to use ternary expressions inside `if` conditions > - Forces to use ternary instead of `... and ... or ...` expression > - Forces to use `c < b < a` instead of `a > b and b > c` > - Forces to use `c < b < a` instead of `a > b > c` > - Forbids to use explicit `in []` and `in ()`, use sets or variables instead > - Forces to write `isinstance(some, (A, B))` > instead of `isinstance(some, A) or isinstance(some, B)` > - Forbids to use `isinstance(some (A,))` > - Forces to merge `a == b or a == c` into `a in {b, c}` and > to merge `a != b and a != c` into `a not in {b, c}` > > ### Bugfixes > > - Fixes incorrect line number for `Z331` > - Fixes that `Z311` was not raising for multiple `not in` cases > - Fixes a bunch of bugs for rules working with `Assign` and not `AnnAssign` > - Fixes that `continue` was not triggering `UselessReturningElseViolation` > > ### Misc > > - Renames `logics/` to `logic/` since it is grammatically correct > - Renames `Redundant` to `Useless` > - Renames `Comparison` to `Compare` > ... (truncated)Commits
- [`ceb257b`](https://github.com/wemake-services/wemake-python-styleguide/commit/ceb257b5d029fc7de89065146f1b1349d78f0a57) Version 0.10.0 release - [`b65ef65`](https://github.com/wemake-services/wemake-python-styleguide/commit/b65ef65be1d3cf3ffcacb05d24e314d70dd8b8a6) Closes [#602](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/602) - [`c9bfe3a`](https://github.com/wemake-services/wemake-python-styleguide/commit/c9bfe3a2b8ad40f68023a4e71a37bc4d42010ab8) Closes [#603](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/603), closes [#663](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/663) - [`832fe26`](https://github.com/wemake-services/wemake-python-styleguide/commit/832fe26ec24759c73fb1cd7e5479dad61c00014f) Closes [#652](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/652) - [`4b4099d`](https://github.com/wemake-services/wemake-python-styleguide/commit/4b4099ded86c1fccb8b0e075151b18b2db8514b9) Improves changelog - [`fe49e4f`](https://github.com/wemake-services/wemake-python-styleguide/commit/fe49e4f86642871e318f21f258f39a2d4186da77) Closes [#661](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/661), closes [#653](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/653) - [`96d7b43`](https://github.com/wemake-services/wemake-python-styleguide/commit/96d7b43a120eb92d11635701dabebc62feca15bc) Closes [#659](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/659) - [`3d65c2f`](https://github.com/wemake-services/wemake-python-styleguide/commit/3d65c2fbbc43478c4fe7d0afcc818021dcacd7ef) Version 0.9.1 release ([#660](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/660)) - [`29184b2`](https://github.com/wemake-services/wemake-python-styleguide/commit/29184b209361da2b12b802443ee64722a4350e2e) Improves CONTRIBUTING - [`33bf8c7`](https://github.com/wemake-services/wemake-python-styleguide/commit/33bf8c7560886da2e81b99cd7b7ea3df66a91b76) Closes [#628](https://github-redirect.dependabot.com/wemake-services/wemake-python-styleguide/issues/628) - Additional commits viewable in [compare view](https://github.com/wemake-services/wemake-python-styleguide/compare/0.9.1...0.10.0)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 ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it). To ignore the version in this PR you can just close it - `@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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.