diff --git a/tests/conftest.py b/tests/conftest.py index fb64da9a4..1b93176ed 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -44,6 +44,6 @@ def factory(**kwargs): @pytest.fixture(scope='session') -def default_options(options): # noqa: WPS442 +def default_options(options): """Returns the default options.""" return options() diff --git a/tests/test_checker/test_presets.py b/tests/test_checker/test_presets.py index c9d44ab27..52d12cfcd 100644 --- a/tests/test_checker/test_presets.py +++ b/tests/test_checker/test_presets.py @@ -60,7 +60,7 @@ def all_visitors(): return set(visitors) -def test_all_visitors_contained_in_checker(all_visitors): # noqa: WPS442 +def test_all_visitors_contained_in_checker(all_visitors): """Ensures that all visitors are contained in a checker.""" checker_visitors = { klass.__qualname__ diff --git a/wemake_python_styleguide/logic/tokens/newlines.py b/wemake_python_styleguide/logic/tokens/newlines.py index c116f401f..c3564f909 100644 --- a/wemake_python_styleguide/logic/tokens/newlines.py +++ b/wemake_python_styleguide/logic/tokens/newlines.py @@ -20,6 +20,6 @@ def next_meaningful_token( # Because we test all the possibilities here. return next( # pragma: no cover tokens[index] - for index in range(token_position + 1, len(tokens)) # noqa: WPS518 + for index in range(token_position + 1, len(tokens)) if tokens[index].exact_type not in NEWLINES )