Skip to content

Commit 2ea1004

Browse files
committed
Unify flake8 config, remove unused imports
1 parent ab17b94 commit 2ea1004

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
ignore = E203,E501,W503,W504
3+
exclude = .git,.mypy_cache,.pytest_cache,.tox,.venv,__pycache__,build,dist,docs
4+
max-line-length = 88

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
try:
6-
import pyannotate_runtime
6+
import pyannotate_runtime # noqa: F401
77

88
PYANOTATE_PRESENT = True
99
except ImportError:

graphql/execution/executors/asyncio_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from inspect import isasyncgen # type: ignore
2-
from asyncio import ensure_future, wait, CancelledError
1+
from asyncio import ensure_future, CancelledError
32
from rx import AnonymousObservable
43

54

setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[flake8]
2-
exclude = tests,scripts,setup.py,docs,graphql/execution/executors/asyncio_utils.py,conftest.py
3-
max-line-length = 160
4-
51
[coverage:run]
62
omit=graphql/backend/quiver_cloud.py,tests,*/tests/*
73

tox.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,3 @@ commands =
2828
changedir = docs
2929
deps = sphinx
3030
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
31-
32-
[flake8]
33-
# Must match black formatter default line length
34-
max-line-length = 88
35-
ignore = E203,E501,W503,W504

0 commit comments

Comments
 (0)