-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
83 lines (72 loc) · 1.88 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
[build-system]
# Must be kept in sync with `requirements.txt`
requires = [
"setuptools >= 46.0.0",
"setuptools_scm >= 2.0.0, <3"
]
build-backend = "setuptools.build_meta"
# Black-compatible settings for isort
# See https://black.readthedocs.io/en/stable/compatible_configs.html
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = "--failed-first --splitting-algorithm least_duration --cov-report=term-missing --cov-report=xml --durations=30 --verbose"
testpaths = [
"tests"
]
timeout = 300
log_format = "%(asctime)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_cli = true
log_level = "INFO"
markers = [
"torch: Mark a test function that uses PyTorch"
]
filterwarnings = "ignore::DeprecationWarning:pkg_resources.*:"
[tool.coverage.run]
branch = true
parallel = true
omit = [
"src/pydvl(value",
"*/.tox/*/lib/python*/site-packages/pydvl/value",
"*/.tox/pypy*/site-packages/pydvl/value",
"*/.tox\\*\\Lib\\site-packages\tpydvl\tvalue",
"*/src/pydvl/value",
"*\\src\\pydvl\\value",
]
[tool.coverage.paths]
source = [
"src/pydvl",
"*/.tox/*/lib/python*/site-packages/pydvl",
"*/.tox/pypy*/site-packages/pydvl",
"*/.tox\\*\\Lib\\site-packages\tpydvl",
"*/src/pydvl",
"*\\src\\pydvl",
]
[tool.coverage.report]
show_missing = true
skip_empty = true
exclude_lines = [
"\\#\\s*pragma: no cover",
"^\\s*raise AssertionError\b",
"^\\s*raise NotImplementedError\b",
"^\\s*return NotImplemented\b",
"^\\s*raise$",
"^if __name__ == ['\"]__main__['\"]:$",
]
[tool.pylint.messages_control]
disable = [
"I0011", # reasoning
]
[tool.pylint.master]
load-plugins = ["pylint_json2html"]
[tool.pylint.reports]
output-format = "jsonextended"
[tool.mypy]
python_version = "3.8"
mypy_path = './src/'
ignore_missing_imports = true
warn_return_any = true
warn_unused_configs = true
[tool.black]
line-length = 88