-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
94 lines (84 loc) · 2.28 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
82
83
84
85
86
87
88
89
90
91
92
93
[build-system]
requires = ["setuptools >= 50.3.2", "wheel >= 0.29.0"]
build-backend = "setuptools.build_meta"
# black is the tool to format the source code
[tool.black]
line-length = 99
target-version = ['py36', 'py37', 'py38']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
# isort orders and lints imports
[tool.isort]
profile = "black"
line_length = 99
multi_line_output = 3
order_by_type = false
force_alphabetical_sort_within_sections = true
force_sort_within_sections = true
combine_as_imports = true
include_trailing_comma = true
color_output = true
lines_after_imports = 2
honor_noqa = true
# Code coverage config
[tool.coverage.run]
branch = true
source = ["judo"]
[tool.coverage.report]
exclude_lines =["no cover",
'raise NotImplementedError',
'if __name__ == "__main__":']
ignore_errors = true
omit = ["tests/*"]
# Flakehell config
[tool.flakehell]
# optionally inherit from remote config (or local if you want)
base = "https://raw.githubusercontent.com/life4/flakehell/master/pyproject.toml"
# specify any flake8 options. For example, exclude "example.py":
exclude = [".git", "docs", ".ipynb*", "*.ipynb", ".pytest_cache"]
format = "grouped" # make output nice
max_line_length = 99 # show line of source code in output
show_source = true
inline_quotes='"'
import_order_style = "appnexus"
application_package_names = ["judo"]
application_import_names = ["judo"]
# Fix AttributeError: 'Namespace' object has no attribute 'extended_default_ignore'
extended_default_ignore=[]
[tool.flakehell.plugins]
"flake8*" = ["+*", "-D*"]
pylint = ["+*", "-D*"]
pyflakes = ["+*", "-D*"]
pycodestyle = ["+*" , "-D100", "-D104", "-D301", "-W503", "-W504", "-D*"]
[tool.flakehell.exceptions."**/__init__.py"]
pyflakes = ["-F401"]
# No docs in the tests. No unused imports (otherwise pytest fixtures raise errors).
[tool.flakehell.exceptions."**/tests/*"]
pycodestyle = ["-D*"]
"flake8*" = ["-D*"]
pylint = ["-D*"]
pyflakes = ["-F401", "-F811"]
[tool.pylint.master]
ignore = 'tests'
load-plugins =' pylint.extensions.docparams'
[tool.pylint.messages_control]
disable = 'all,'
enable = """,
missing-param-doc,
differing-param-doc,
differing-type-doc,
missing-return-doc,
"""