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
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Semantic versioning in our case means:
- **Breaking**: Removes `WPS419`, because is covered by `ruff` linter
- **Breaking**: Removes `WPS423`, because is covered by `ruff` linter
- **Breaking**: Removes `WPS424`, because is covered by `ruff` linter
- **Breaking**: Removes `WPS440`, because
it was buggy and is covered by `mypy`, #3209
- **Breaking**: Removes `WPS442`, because
it was buggy and is covered by `mypy`, #3209
- **Breaking**: Removes `WPS452`, because is covered by `ruff` linter
- **Breaking**: Removes `WPS454`, because is covered by `ruff` linter
- **Breaking**: Removes `WPS465`, because `|` is now heavily used by typing
Expand All @@ -80,7 +84,7 @@ Semantic versioning in our case means:
- Allows `pass` in `case` bodies, #2642
- Allows subclassing builtins in `WPS600`, when creating an `Enum`, #2506
- Allows using variables after blocks for `WPS441` in `assert` statements, #2543
- Allows using nested `import` in `try` for `WPS433` and `WPS440`, #2382
- Allows using nested `import` in `try` for `WPS433`, #2382
- Does not count `self`, `cls`, and `mcs` as arguments
for `WPS211` complexity check anymore, #2394
- Allows underscores (`_`) with exactly 3 digits after it in `WPS303`, #3120
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extend-exclude =
tests/**/__snapshots__/**

# We only run `wemake-python-styleguide` with `flake8`:
select = WPS
select = WPS, E999

per-file-ignores =
# These modules should contain a lot of classes and strings:
Expand Down
5 changes: 2 additions & 3 deletions tests/fixtures/noqa/noqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ class BadClass:
UPPER_CASE_ATTRIBUTE = 12 # noqa: WPS115

def __del__(self, *_args, **_kwargs): # noqa: WPS603
anti_wps428 = 1 # noqa: WPS442
my_print('del')

class Nested: # noqa: WPS431
anti_wps428 = 1

async def __eq__(self, other): # noqa: WPS610
anti_wps428 = 3 # noqa: WPS442
my_print('eq')


magic_numbers = 13.2 + 50 # noqa: WPS432
Expand Down Expand Up @@ -521,7 +521,6 @@ async def async_gen(self):
raise StopIteration() # noqa: WPS438

bad_unicode = b'\u0040' # noqa: WPS439
CheckStopIteration = 1 # noqa: WPS440
my_print(literal) # noqa: WPS441
unhashable = {[]} # noqa: WPS443
assert [] # noqa: WPS444
Expand Down
4 changes: 2 additions & 2 deletions tests/test_checker/test_noqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@
'WPS437': 1,
'WPS438': 4,
'WPS439': 1,
'WPS440': 1,
'WPS440': 0, # disabled since 1.0.0
'WPS441': 1,
'WPS442': 2,
'WPS442': 0, # disabled since 1.0.0
'WPS443': 1,
'WPS444': 1,
'WPS445': 1,
Expand Down
2 changes: 2 additions & 0 deletions tests/test_formatter/test_formatter_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def test_ipynb(snapshot):
'flake8',
filename,
'--disable-noqa',
'--select',
'WPS',
'--isolated',
'--format',
'wemake',
Expand Down
32 changes: 0 additions & 32 deletions tests/test_visitors/test_ast/test_blocks/conftest.py

This file was deleted.

Loading
Loading