Skip to content

Commit

Permalink
Make Flake8 more strict by requiring code on noqa statements (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kane610 authored May 19, 2021
1 parent 5a867e5 commit 22ee807
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions axis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .device import AxisDevice # noqa
from .errors import * # noqa
from .device import AxisDevice # noqa: F401
from .errors import * # noqa: F401, F403
2 changes: 1 addition & 1 deletion axis/applications/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .applications import * # noqa
from .applications import * # noqa: F401, F403
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ pytest-asyncio
httpx==0.18.1
respx==0.17.0
flake8==3.9.2
flake8-noqa==1.1.0
black==21.5b1
isort==5.8.0
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ ignore =
W503,
E203,
D202,
W504
W504
noqa-require-code = True

0 comments on commit 22ee807

Please sign in to comment.