-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
70 lines (62 loc) · 1.48 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
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
# https://docs.pytest.org/en/stable/customize.html
addopts = '''
-ra
--tb=line
-W error
--doctest-modules
--strict-markers
'''
# -ra: show extra test summary [...] (a)ll except passed [...]
# --tb=style: traceback print mode (auto/long/short/line/native/no)
# -W: set which warnings to report, "error" turns matching warnings into exceptions
testpaths = [
"tests",
]
norecursedirs = [
".git",
".github",
".pytest_cache",
"__pycache__",
]
markers = [
"gurobipy: a test that requires Gurobi (gurpbipy)",
"scip: a test that requires SCIP",
"glpk_mi: a test that requires glpk_mi",
"cbc: a test that requires CBC",
"cvxpy: a test that requires cvxpy",
"ortools: a test that requires ortools",
"mip: a test that requires mip",
"mipgurobi: a test that requires mip and Gurobi",
"mipcbc: a test that requires mip and CBC",
"gmpy2: a test that requires gmpy2",
"slow: a test with a rather long runtime",
"veryslow: a test with a VERY long runtime"
]
[tool.coverage.run]
# https://coverage.readthedocs.io/en/latest/config.html
branch = true
[tool.coverage.report]
show_missing = true
fail_under = 0
[tool.black]
# https://black.readthedocs.io/en/stable/pyproject_toml.html
line-length = 99
target-version = ['py38']
exclude = '''
(
/(
\.git
| \.github
| \.pytest_cache
| env
| venv
)/
)
'''