-
Notifications
You must be signed in to change notification settings - Fork 50
/
setup.cfg
32 lines (29 loc) · 1.39 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[flake8]
# https://github.com/ambv/black#line-length
max-line-length = 88
ignore =
E203, # E203: whitespace before ':' (defer to black)
E231, # E231: missing whitespace after ',' (defer to black)
E501, # E501: line length (defer to black)
W503, # W503: break before binary operators (defer to black)
A003, # A003: [builtins] allow class attributes to be named after builtins (e.g., `id`)
exclude =
migrations,
[pep8]
max-line-length = 88
ignore =
E701, # E701: multiple statements on one line (flags py3 inline type hints)
[pydocstyle]
# Harvey's initial attempt at pydocstyle rules. Please suggest improvements!
# The `(?!\d{4}_)` pattern is a hacky way to exclude migrations, since pydocstyle doesn't
# have an `exclude` option. https://github.com/PyCQA/pydocstyle/issues/175
match = (?!test_)(?!\d{4}_).*\.py
# See http://www.pydocstyle.org/en/5.0.1/error_codes.html
ignore =
D100, # D100: docstring in public module (we don't have a practice around this)
D104, # D104: docstring in public package (we don't have a practice around this)
D105, # D105: docstring in magic method
D107, # D105: docstring in __init__ method
D203, # D203: Blank line required before class docstring
D213, # D213: Multi-line docstring summary should start at the second line (need to choose D212 or D213; see https://stackoverflow.com/a/45990465)
D302, # D302: Use u”“” for Unicode docstrings