Skip to content

Commit

Permalink
Unify flake8 config, remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Dec 30, 2019
1 parent ab17b94 commit 2ea1004
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
ignore = E203,E501,W503,W504
exclude = .git,.mypy_cache,.pytest_cache,.tox,.venv,__pycache__,build,dist,docs
max-line-length = 88
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

try:
import pyannotate_runtime
import pyannotate_runtime # noqa: F401

PYANOTATE_PRESENT = True
except ImportError:
Expand Down
3 changes: 1 addition & 2 deletions graphql/execution/executors/asyncio_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from inspect import isasyncgen # type: ignore
from asyncio import ensure_future, wait, CancelledError
from asyncio import ensure_future, CancelledError
from rx import AnonymousObservable


Expand Down
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[flake8]
exclude = tests,scripts,setup.py,docs,graphql/execution/executors/asyncio_utils.py,conftest.py
max-line-length = 160

[coverage:run]
omit=graphql/backend/quiver_cloud.py,tests,*/tests/*

Expand Down
5 changes: 0 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ commands =
changedir = docs
deps = sphinx
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[flake8]
# Must match black formatter default line length
max-line-length = 88
ignore = E203,E501,W503,W504

0 comments on commit 2ea1004

Please sign in to comment.