-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpyproject.toml
138 lines (121 loc) · 3.09 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "buildtest"
dynamic = ["version"]
readme = "README.rst"
requires-python = ">=3.9"
license = "MIT"
authors = [
{ name = "Shahzeb Siddiqui", email = "[email protected]" },
]
dependencies=[
'distro',
'jsonschema >= 4.18',
'lmodule',
'PyYAML >= 5.12',
'requests',
'rich',
'urllib3>=2.1.0',
# both coverage and pytest required for running 'buildtest tutorial-examples'
'coverage',
'pytest',
# required for running 'buildtest stylecheck'
'black==24.3.0',
'pyflakes',
'isort',
'archspec',
'psutil',
]
[project.urls]
Documentation = "https://buildtest.readthedocs.io/en/latest/"
Source = "https://github.com/buildtesters/buildtest"
[tool.hatch.envs.default.scripts]
buildtest = "./bin/buildtest"
[tool.hatch.version]
path = "buildtest/__init__.py"
[project.optional-dependencies]
dev = [
'pre-commit',
'yamllint'
]
docs = [
"docutils==0.20.1",
"readthedocs-sphinx-search==0.3.2",
"sphinx==7.4.7",
"sphinx-design==0.5.0",
"sphinx-argparse==0.5.2",
"sphinx-autoapi==3.0.0",
"sphinx-rtd-theme==2.0.0",
"sphinxcontrib-programoutput==0.17",
"sphinxext-remoteliteralinclude==0.4.0",
"sphinx-copybutton==0.5.2"
]
[tool.black]
#required-version = '23.3.0'
#target-version = ['py38', 'py39', 'py310', 'py311']
skip_magic_trailing_comma = true
line-length = 88
[tool.isort]
profile = 'black'
src_paths = ["buildtest", "tests", "docs"]
line_length = 88
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
split_on_trailing_comma = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-vra -x --durations=20 -vv"
testpaths = ["tests"]
markers = [
"schema: run schema tests",
"utility: run test for utility methods used throughout codebase",
"cli: run test for targetting buildtest command line features",
"spack: run spack tests"
]
[tool.coverage.run]
parallel = true
concurrency = ["multiprocessing"]
branch = true
source = ["buildtest"]
omit = [
'buildtest/main.py',
'buildtest/defaults.py',
'buildtest/__init__.py',
'buildtest/cli/edit.py',
'buildtest/cli/cd.py',
'buildtest/tools/docs.py',
'buildtest/tools/unittests.py',
'buildtest/tools/tutorialexamples.py',
]
[tool.coverage.report]
ignore_errors = true
skip_empty = true
sort = "-cover"
precision = 2
# 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 False:',
'if __name__ == .__main__.:',
# buildtest methods that should not be coverred by regression tests
'buildspec_find',
'config_cmd',
'report_cmd',
'build_history',
]
[tool.coverage.html]
directory = "htmlcov"