-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (99 loc) · 2.81 KB
/
pyproject.toml
File metadata and controls
114 lines (99 loc) · 2.81 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
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
[project]
name = "devcontainer"
version = "0.1.1"
description = "vigOS development environment"
requires-python = "==3.12.10"
dependencies = [
"github-backup>=0.50.3",
"jinja2>=3.1.0",
"pexpect>=4.9.0",
"pre-commit>=4.3.0",
"pytest>=9.0.1",
"pyyaml>=6.0.3",
"testinfra>=6.0.0",
]
[dependency-groups]
dev = [
"vig-utils",
{ include-group = "devcontainer" },
{ include-group = "lint" },
{ include-group = "test" },
]
devcontainer = [
"rich>=13.0.0",
"pre-commit>=4.3.0",
"ruff>=0.14.3",
"pip-licenses>=5.0.0",
"bandit[toml]>=1.7.5",
]
lint = [
"pre-commit>=4.3.0",
"ruff>=0.14.3",
"pip-licenses>=5.0.0",
"bandit[toml]>=1.7.5",
]
test = [
"pytest>=8.4.1",
"pytest-cov>=6.0",
"pytest-testinfra>=10.2.2",
"pytest-docker>=3.2.3",
"pexpect>=4.8.0",
"testcontainers>=4.9.0",
"bcrypt>=5.0.0",
]
[tool.uv]
constraint-dependencies = [
"urllib3>=2.6.3",
"filelock>=3.20.3",
"virtualenv>=20.36.1",
]
[tool.uv.sources]
vig-utils = { path = "packages/vig-utils", editable = true }
[tool.ruff]
# Black-compatible line length
line-length = 88
# Target Python 3.12
target-version = "py312"
[tool.ruff.lint]
extend-select = [
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
]
# Ignore specific rules if needed
ignore = []
[tool.ruff.format]
# Use double quotes for strings (Black compatible)
quote-style = "double"
# Use spaces for indentation (Black compatible)
indent-style = "space"
[tool.pytest.ini_options]
# Suppress deprecation warnings from testcontainers library
filterwarnings = ["ignore::DeprecationWarning:testcontainers"]
# Discover tests in both root tests/ and vig-utils package tests
testpaths = ["tests", "packages/vig-utils/tests"]
# Do not collect tests from tests/tmp (integration-test workspace dirs with template tests)
norecursedirs = "tmp"
# ---------------------------------------------------------------------------
# Coverage (pytest-cov / coverage.py)
# ---------------------------------------------------------------------------
# Coverage targets project-level Python code (vig_utils, scripts/, docs/).
# Image and integration tests run inside containers and are not instrumented.
[tool.coverage.run]
source = ["packages/vig-utils/src/vig_utils", "scripts", "docs"]
omit = ["tests/*", "assets/*", "**/__init__.py"]
[tool.coverage.report]
show_missing = true
skip_empty = true
# Minimum coverage threshold — CI will fail if total drops below this value.
# Currently 50% because some modules (prepare-changelog.py CLI functions,
# docs/generate.py workflow coordination) are harder to instrument.
# Unit tests added for core functions; subprocess tests validate CLI.
fail_under = 50
[tool.coverage.xml]
output = "coverage.xml"