-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
96 lines (81 loc) · 1.76 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
[build-system]
requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"
[tool.black]
line-length = 100
target-version = [
"py310",
]
[tool.ruff]
select = ["E", "F", "W", "I", "N", "UP"]
# Same as Black
line-length = 100
# The lowest supported version
target-version = "py310"
# GitLab CI code quality report
output-format = "grouped"
[tool.ruff.pep8-naming]
ignore-names = [
"i",
"j",
"k",
"ex",
"Run",
"_",
"up",
"x",
"y",
"z",
# These are used in Bayes filters and are in line with common notation
# of state-space models and tracking
"P",
"Q",
"R",
"X",
"Y",
"G",
"F",
"B",
"H",
"S",
"K",
]
[tool.pytest.ini_options]
addopts = "-v --color=yes --cov=promis --doctest-modules"
junit_family = "xunit2"
testpaths = [
# for the doctests:
"promis",
# for the actual tests:
"tests"
]
doctest_optionflags = [
"IGNORE_EXCEPTION_DETAIL",
"DONT_ACCEPT_TRUE_FOR_1"
]
filterwarnings = [
"error",
"error::PendingDeprecationWarning",
"ignore::DeprecationWarning",
]
[tool.coverage.run]
concurrency = ["multiprocessing"]
branch = true
[tool.coverage.report]
fail_under = 50.00
precision = 2
show_missing = true
exclude_lines = [
# Regexes for lines to exclude from consideration
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
# It's okay to not cover unimplemented comparison methods
"return NotImplemented"
]