Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 305cf3d

Browse files
committed
Switch to flake8 for pep8 testing
1 parent 88a2ec0 commit 305cf3d

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@ test=pytest
66

77
[flake8]
88
max-line-length = 120
9-
10-
[tool:pytest]
11-
pep8maxlinelength = 120
12-

src/framequery/alchemy/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from __future__ import print_function, division, absolute_import
22

33
from .dialect import PandasDialect
4+
5+
__all__ = ['PandasDialect']

src/framequery/alchemy/dbapi.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import print_function, division, absolute_import
22

3-
from framequery import execute
4-
53

64
paramstyle = 'pyformat'
75
threadsafety = 1

src/framequery/alchemy/dialect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from sqlalchemy.dialects.postgresql.base import PGDialect
77

8-
from ..executor import Executor, execute
8+
from ..executor import Executor
99
from . import dbapi
1010

1111

src/framequery/util/_monadic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def format_debug(debug, indent=0):
147147
children = debug.get('children', [])
148148
where = debug.get('where', '<unknown>')
149149

150-
yield('{}{}: {} in {}'.format(' ' * indent, status, message, where))
150+
yield('{}{}: {} in {}'.format(' ' * indent, status, message, where))
151151

152152
for d in children:
153153
for msg in format_debug(d, indent=indent + 1):
@@ -435,7 +435,7 @@ def impl(s):
435435
idx = find(s, quote, idx + 1)
436436

437437
if idx < 0:
438-
return None, s, Status.fail(consumed=idx+1)
438+
return None, s, Status.fail(consumed=idx + 1)
439439

440440
if s[idx - 1] != escape:
441441
break

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ passenv = FQ_TEST_DB
66

77
deps=
88
pytest
9-
pytest-pep8
9+
pytest-flake8
1010
sqlalchemy
1111
psycopg2
1212
dask[dataframe]
1313

14-
commands=py.test --pep8 -v tests src
14+
commands=py.test --flake8 -v tests src
1515

0 commit comments

Comments
 (0)