forked from Netflix/dispatch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
45 lines (39 loc) · 1.23 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
33
34
35
36
37
38
39
40
41
42
43
44
45
[tool:pytest]
python_files = test*.py
addopts = --tb=native -p no:doctest -p no:warnings
norecursedirs = bin dist docs htmlcov script hooks node_modules .* {args}
looponfailroots = src tests
selenium_driver = chrome
self-contained-html = true
[flake8]
# E203 false positive, see https://github.com/PyCQA/pycodestyle/issues/373
ignore = F999,E203,E266,W403,F401,E501,E128,E124,E402,W503,W504,E731,C901,B007,B306,B009,B010
exclude = .venv/.git,*/migrations/*,node_modules/*,docs/*
max-line-length=100
max-complexity = 18
select = B,C,E,F,W,T4,B9
# XXX: E501 is ignored, which disables line length checking.
# Currently, the black formatter doesn't wrap long strings: https://github.com/psf/black/issues/182#issuecomment-385325274
# We already have a lot of E501's - these are lines black didn't wrap.
# But rather than append # noqa: E501 to all of them, we just ignore E501 for now.
[bdist_wheel]
python-tag = py38
[coverage:run]
omit =
dispatch/migrations/*
source =
src
tests
[isort]
line_length=100
lines_between_sections=1
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
known_first_party=dispatch
default_section=THIRDPARTY
indent=' '
skip=setup.py,src/dispatch/models.py
[black]
line_length=100