-
Notifications
You must be signed in to change notification settings - Fork 198
/
pyproject.toml
79 lines (68 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
# This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = [
# Require versions that support our license files
# but produce the same names for artifacts as we always had.
'setuptools == 69.2.0',
'wheel >= 0.32.0',
]
build-backend = 'setuptools.build_meta'
[tool.black]
include = 'bin|\.py$'
exclude = 'node_modules|\.eggs'
target-version = ['py38']
[tool.coverage.run]
branch = true
parallel = true
source = ['benchexec']
omit = ['benchexec/tools/*']
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain about missing debug-only code:
'def __repr__',
'if self\.debug',
# 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 0:',
'if __name__ == .__main__.:',
]
[tool.coverage.html]
directory = 'coverage'
[tool.pytype]
inputs = ['benchexec']
exclude = [
'benchexec/tablegenerator/react-table',
# TODO
'benchexec/tools',
'**/test_*.py',
'**/test_*/**.py',
]
[tool.ruff.lint]
# TODO: Enable more checks.
#select = ["ALL"]
ignore = [
# temporarily disabled for historic reasons: documentation, line length, type annotations
'E501',
'I001',
]
[tool.ruff.lint.per-file-ignores]
'benchexec/test*.py' = [
# wildcard imports significantly shorten test code,
'F405',
]
[tool.pytest.ini_options]
filterwarnings = [
"error",
]
python_files = ["test_*.py", "test_integration/__init__.py", "test.py"]
norecursedirs = ["contrib/p4/docker_files", "build", "benchexec/tablegenerator/react-table"]