Skip to content

Commit 7978b7b

Browse files
committed
Pin flake8 & pycodestyle; fix style issues
1 parent d3131f4 commit 7978b7b

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[flake8]
2-
ignore = E402,E731
2+
ignore = E402,E731,W504,E252
33
exclude = .git,__pycache__,build,dist,.eggs,.github,.local

asyncpg/pool.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,14 @@ class Pool:
304304
Pools are created by calling :func:`~asyncpg.pool.create_pool`.
305305
"""
306306

307-
__slots__ = ('_queue', '_loop', '_minsize', '_maxsize',
308-
'_init', '_connect_args', '_connect_kwargs',
309-
'_working_addr', '_working_config', '_working_params',
310-
'_holders', '_initialized', '_initializing', '_closing',
311-
'_closed', '_connection_class', '_generation',
312-
'_setup', '_max_queries', '_max_inactive_connection_lifetime'
313-
)
307+
__slots__ = (
308+
'_queue', '_loop', '_minsize', '_maxsize',
309+
'_init', '_connect_args', '_connect_kwargs',
310+
'_working_addr', '_working_config', '_working_params',
311+
'_holders', '_initialized', '_initializing', '_closing',
312+
'_closed', '_connection_class', '_generation',
313+
'_setup', '_max_queries', '_max_inactive_connection_lifetime'
314+
)
314315

315316
def __init__(self, *connect_args,
316317
min_size,

setup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131

3232
# Minimal dependencies required to test asyncpg.
3333
TEST_DEPENDENCIES = [
34-
'flake8~=3.5.0',
34+
# pycodestyle is a dependency of flake8, but it must be frozen because
35+
# their combination breaks too often
36+
# (example breakage: https://gitlab.com/pycqa/flake8/issues/427)
37+
'pycodestyle~=2.5.0',
38+
'flake8~=3.7.9',
3539
'uvloop~=0.14.0;platform_system!="Windows"',
3640
]
3741

0 commit comments

Comments
 (0)