forked from probabilistic-numerics/probnum
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
108 lines (95 loc) · 2.03 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# For more information about this pyproject.toml file, see
# PEP 518: https://www.python.org/dev/peps/pep-0518/
# PyTest configuration
[tool.pytest.ini_options]
addopts = "--verbose --doctest-modules"
norecursedirs = [
".*",
"*.egg*",
"dist",
"build",
".tox"
]
testpaths = [
"src",
"tests"
]
doctest_optionflags = "NUMBER NORMALIZE_WHITESPACE"
# Configuration of the black code style checker
# For more information about Black's usage of this file, see
# https://github.com/psf/black#pyprojecttoml
[tool.black]
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.pylint.messages_control]
# Exceptions suggested from Black: bad-continuation, bad-whitespace
disable = """
invalid-name,
fixme,
bad-continuation,
no-else-return,
no-else-raise,
no-member,
redefined-variable-type,
abstract-class-instantiated,
too-many-locals,
too-few-public-methods,
too-many-arguments,
unused-argument,
missing-module-docstring,
missing-function-docstring,
duplicate-code,
protected-access,
no-self-use,
arguments-differ,
attribute-defined-outside-init,
too-many-statements,
too-many-instance-attributes,
too-complex,
too-many-lines,
redefined-builtin,
abstract-method,
too-many-branches,
line-too-long,
missing-class-docstring,
unnecessary-pass,
unused-variable,
redefined-outer-name,
function-redefined,
import-error
"""
# Many more `disable`s are defined in `./tox.ini` on a per-module basis!
[tool.pylint.format]
max-line-length = "88"
[tool.pylint.master]
extension-pkg-whitelist = "numpy"
# Extensions that might be of interest in the future:
# pylint.extensions.check_elif,
# pylint.extensions.docparams,
load-plugins = """
pylint.extensions.docstyle,
pylint.extensions.mccabe,
pylint.extensions.redefined_variable_type,
pylint.extensions.overlapping_exceptions,
"""
[tool.pylint.design]
max-complexity = "14"
[tool.isort]
multi_line_output = "3"
include_trailing_comma = "true"
force_grid_wrap = "0"
use_parentheses = "true"
line_length = "88"