Skip to content

Commit c22ca9c

Browse files
committed
Move flake8 configuration to setup.cfg & amend
1 parent bfbd5f4 commit c22ca9c

2 files changed

Lines changed: 34 additions & 23 deletions

File tree

setup.cfg

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,37 @@ packages =
2323

2424
[bdist_wheel]
2525
universal = 1
26+
27+
[flake8]
28+
max-line-length = 99
29+
extend-ignore =
30+
# ignore line length problems; those are fixed by black
31+
E501
32+
# via black
33+
E203
34+
W503
35+
# docstring format leniency
36+
D100
37+
D104
38+
D105
39+
D200
40+
D202
41+
D205
42+
D400
43+
D401
44+
D403
45+
# things from `hacking` we don't care about
46+
H101
47+
H301
48+
H306
49+
H404
50+
H405
51+
per-file-ignores =
52+
test/*: D101,D102,D103,F841,S101,S106,B011
53+
# ignore "imported but not used" in any __init__.pys
54+
*/__init__.py: F401
55+
exclude =
56+
.git
57+
ENV
58+
__pycache__
59+
build

tox.ini

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,3 @@ deps = -rrequirements-dev.txt
1515
passenv = *
1616
commands = py.test test/ {posargs: -x}
1717
deps = -rrequirements-dev.txt
18-
19-
[flake8]
20-
ignore = D100, # missing docstring in public module
21-
D105,
22-
D200, # one line docstring should fit on one line with quotes
23-
D203, # 1 blank line required before class docstring
24-
D205, # blank line required after description (in docstrings)
25-
H101,
26-
H238,
27-
H301,
28-
H304,
29-
H404,
30-
H405
31-
exclude =
32-
# No need to traverse our git directory
33-
.git,
34-
# There's no value in checking cache directories
35-
__pycache__,
36-
# ...or build ones
37-
build,
38-
# Ignore virtualenv
39-
ENV
40-
max-line-length = 99

0 commit comments

Comments
 (0)