Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Semantic versioning in our case means:
But, in the future we might change the configuration names/logic,
change the client facing API, change code conventions significantly, etc.

## WIP
## 1.6.2

### Bugfixes

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FROM python:3.13.7-alpine
LABEL maintainer="mail@sobolevn.me"
LABEL vendor="wemake.services"

ENV WPS_VERSION='1.6.1'
ENV WPS_VERSION='1.6.2'
ENV REVIEWDOG_VERSION='v0.21.0'

RUN apk add --no-cache bash git wget
Expand Down
1,116 changes: 578 additions & 538 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = [ "poetry-core>=2.2" ]

[tool.poetry]
name = "wemake-python-styleguide"
version = "1.6.1"
version = "1.6.2"
description = "The strictest and most opinionated python linter ever"
license = "MIT"
requires-poetry = ">=2.3"
Expand Down
4 changes: 2 additions & 2 deletions wemake_python_styleguide/logic/tree/keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def returning_nodes(
for sub_node in ast.walk(node):
context_node = get_context(sub_node)
if isinstance(sub_node, returning_type) and context_node == node:
if sub_node.value: # type: ignore
if sub_node.value:
has_values = True
returns.append(sub_node) # type: ignore
returns.append(sub_node)
return returns, has_values
3 changes: 2 additions & 1 deletion wemake_python_styleguide/violations/complexity.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,9 @@ class TooManyConditionsViolation(ASTViolation):
.. versionchanged:: 0.5.0
.. versionchanged:: 1.4.0
Added ``--max-conditions`` configuration options.
.. versionchanged:: 1.7.0
.. versionchanged:: 1.6.2
Stopped recursive counting of nested ``ast.BoolOp`` nodes.

"""

error_template = 'Found a condition with too much logic: {0}'
Expand Down