Skip to content

Commit

Permalink
Fix up cmd run: different noqa rules apply here
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescooke committed Jul 13, 2019
1 parent f224163 commit eb1f3f3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
8 changes: 0 additions & 8 deletions examples/good/black/noqa/test_01.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 6 additions & 0 deletions examples/good/black/noqa/test_cmd.py
Original file line number Diff line number Diff line change
@@ -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
12 changes: 0 additions & 12 deletions examples/good/noqa/test_01.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
10 changes: 10 additions & 0 deletions examples/good/noqa/test_cmd.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eb1f3f3

Please sign in to comment.