-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpyproject.toml
81 lines (73 loc) · 1.72 KB
/
pyproject.toml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| migrations
| _build
| buck-out
| build
| dist
| node_modules
| notebooks
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
)/
'''
[tool.pytest.ini_options]
filterwarnings = [
"ignore:'(wagtail|taggit|debug_toolbar):django.utils.deprecation.RemovedInDjango41Warning",
"ignore:django.utils.translation.ugettext_lazy():django.utils.deprecation.RemovedInDjango40Warning",
]
# Skip the occupations/search tests while we have this disabled
addopts = ' --ignore-glob "**/test_occupations/**" --ignore-glob "**/test_search/**"'
[tool.flake8]
max-line-length = 88
max-complexity = 7
doctests = true
[tool.flakeheaven]
exclude = ["migrations", "setup.py", "README.md"]
max_line_length = 88
show_source = true
[tool.flakeheaven.plugins]
flake8-commas = ["+*"]
flake8-docstrings = ["-D100", "-D101", "-D102", "-D103", "-D107"]
flake8-print = ["+*"]
flake8-quotes = ["+*"]
# flake8-spellcheck-targets="comments"
mccabe = ["+*"]
pycodestyle = ["+*", "-W503", "-W504", "-E203", "-E501"]
pyflakes = [
"+*",
"-F403",
"-F401", # TODO re-enable this - unable to detect undefined names
]
pylint = ["+*", "-W504"]
[tool.flakeheaven.exceptions."tasks.py"]
flake8-print = ["-*"]
[tool.flakeheaven.exceptions."api/app/settings/"]
pyflakes = ["-F405"]
[tool.coverage.report]
show_missing = true
fail_under = 50
[tool.isort]
profile = "black"
multi_line_output = 3
known_django = "django"
known_wagtail = "wagtail"
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"DJANGO",
"WAGTAIL",
"FIRSTPARTY",
"LOCALFOLDER",
]