-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (53 loc) · 1.57 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (53 loc) · 1.57 KB
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
# This project is NOT an installable package. Run the tools directly, e.g.
# python scripts/docgen/generator.py ...
# python scripts/linters/linter.py ...
# This file exists only to record dependencies and configure pytest/coverage.
[project]
name = "policy-deployment-engine"
version = "0.1.0"
requires-python = ">=3.11"
# The docgen/linter/auto_test tools run on the standard library alone (auto_test
# also shells out to the `terraform` and `opa` binaries). The folder_generator GUI
# needs customtkinter — see scripts/folder_generator/requirements.txt.
dependencies = []
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
]
[tool.pytest.ini_options]
# Tests live next to the tool they cover, in a `_tests/` dir
# (e.g. scripts/docgen/_tests/). importlib mode keeps same-named test
# files across different tools from colliding.
testpaths = ["scripts"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"--import-mode=importlib",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
]
[tool.coverage.run]
source = ["scripts"]
omit = [
"*/_tests/*",
"*/test_*.py",
"*/__pycache__/*",
".venv/*",
"venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]