Skip to content

Commit

Permalink
add complex example to ParametersIndentationViolation (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlwxSin authored and sobolevn committed Nov 25, 2019
1 parent 12709fb commit 5efd8b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ We used to have incremental versioning before `0.1.0`.

- Fixes that `_` was marked as invalid by `VagueImportViolation`
- Fixes that docs for `VagueImportViolation` were misleading
- Fixes invalid docs for `BracketBlankLineViolation` #1020
- Add more complex example to `ParametersIndentationViolation` #1021


## 0.13.0 aka The Lintoberfest
Expand Down
7 changes: 7 additions & 0 deletions wemake_python_styleguide/violations/consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,13 @@ def my_function(
last_item,
], end='')
# Correct complex case:
@pytest.mark.parametrize(('boolean_arg', 'string_arg'), [
(True, "string"),
(False, "another string"),
])
Everything else is considered a violation.
This rule checks: lists, sets, tuples, dicts, calls,
functions, methods, and classes.
Expand Down

0 comments on commit 5efd8b8

Please sign in to comment.