diff --git a/Makefile b/Makefile index 28b3af9..c2cd2e1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ lint_files=setup.py src/flake8_aaa tests rst_files=README.rst CHANGELOG.rst -good_examples = $(wildcard examples/good/*.py examples/good/noqa/test_01.py examples/good/noqa/test_02.py) +good_examples = $(wildcard examples/good/*.py examples/good/noqa/test_cmd.py examples/good/black/noqa/test_cmd.py) bad_examples = $(wildcard examples/bad/*.py) diff --git a/examples/good/black/noqa/test_01.py b/examples/good/black/noqa/test_01.py index 7c8a174..002d924 100644 --- a/examples/good/black/noqa/test_01.py +++ b/examples/good/black/noqa/test_01.py @@ -1,11 +1,3 @@ -def test(): # noqa - assert 1 + 1 == 2 - - -def test_multi_line_args(math_fixture, *args, **kwargs): # noqa - assert 1 + 1 == 2 - - def test_specific(): # noqa: AAA01 assert 1 + 1 == 2 diff --git a/examples/good/black/noqa/test_cmd.py b/examples/good/black/noqa/test_cmd.py new file mode 100644 index 0000000..94e9443 --- /dev/null +++ b/examples/good/black/noqa/test_cmd.py @@ -0,0 +1,6 @@ +def test(): # noqa + assert 1 + 1 == 2 + + +def test_multi_line_args(math_fixture, *args, **kwargs): # noqa + assert 1 + 1 == 2 diff --git a/examples/good/noqa/test_01.py b/examples/good/noqa/test_01.py index bb4e431..67b8696 100644 --- a/examples/good/noqa/test_01.py +++ b/examples/good/noqa/test_01.py @@ -1,15 +1,3 @@ -def test(): # noqa - assert 1 + 1 == 2 - - -def test_multi_line_args( # noqa - math_fixture, - *args, - **kwargs -): - assert 1 + 1 == 2 - - def test_specific(): # noqa: AAA01 assert 1 + 1 == 2 diff --git a/examples/good/noqa/test_cmd.py b/examples/good/noqa/test_cmd.py new file mode 100644 index 0000000..fa53408 --- /dev/null +++ b/examples/good/noqa/test_cmd.py @@ -0,0 +1,10 @@ +def test(): # noqa + assert 1 + 1 == 2 + + +def test_multi_line_args( # noqa + math_fixture, + *args, + **kwargs +): + assert 1 + 1 == 2