-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (98 loc) · 2.86 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
# Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[build-system]
requires = [
"setuptools>=42",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.mypy]
files = "trieste,tests,notebooks/**/*.py"
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
show_error_codes = true
[[tool.mypy.overrides]]
module = ["trieste.*", "tests.*"]
disallow_any_generics = true
disallow_untyped_defs = true
disallow_subclassing_any = true
warn_unreachable = true
[tool.pytest.ini_options]
addopts = "--doctest-modules"
testpaths = [
"trieste",
"tests/util",
"tests/unit",
"tests/integration",
]
[tool.black]
line-length = 100
target-version = ['py37']
include = '\.py$'
extend-exclude = '\.pct.py$'
[tool.isort]
profile = "black"
skip_gitignore = true
skip_glob = "docs/notebooks"
line_length = 100
[tool.taskipy.tasks]
tests = "pytest --mypy --cov trieste --cov-report html:htmlcov --durations 6"
alltests = "pytest --mypy --durations 6 --runslow yes"
slowtests = "pytest --mypy --durations 6 --runslow only"
quicktests = "pytest -x --ff -rN -Wignore --ignore-glob=tests/integration/*"
mypy = "mypy"
pylint = "pytest --pylint --cache-clear -m pylint -v trieste"
check_format = "pytest -v --black --flake8 --isort -m 'black or flake8 or isort'"
format = "black . && flake8 . && isort . && black -l 80 notebooks/*pct.py"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"@overload",
"def __repr__",
"if __name__ == __main__:",
]
[tool.pylint.'MESSAGES CONTROL']
disable = [
"duplicate-code",
"invalid-characters-in-docstring",
"invalid-name",
"invalid-unary-operand-type",
"line-too-long",
"locally-disabled",
"missing-module-docstring",
"no-else-return",
"no-self-use",
"no-value-for-parameter",
"redefined-builtin",
"redundant-keyword-arg",
"suppressed-message",
"too-few-public-methods",
"too-many-ancestors",
"too-many-lines",
"too-many-instance-attributes",
"too-many-public-methods",
"too-many-arguments",
"too-many-locals",
"too-many-statements",
"too-many-boolean-expressions",
"too-many-nested-blocks",
"unexpected-keyword-arg",
"unused-argument",
"unsubscriptable-object",
"wrong-spelling-in-comment",
"wrong-spelling-in-docstring",
]