-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (57 loc) · 1.53 KB
/
pyproject.toml
File metadata and controls
65 lines (57 loc) · 1.53 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "legionforge-dev-rig"
version = "0.1.0"
description = "Shared CI/CD pipeline, pre-commit hooks, and test fixtures for LegionForge projects"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
dependencies = [
"pytest>=8",
"pytest-asyncio>=0.23",
"pytest-cov>=5",
"httpx>=0.27",
"respx>=0.21", # async httpx mocking
]
[project.optional-dependencies]
# Install in consuming projects: pip install legionforge-dev-rig[analysis]
analysis = [
"ruff>=0.4",
"bandit[toml]>=1.7",
"mypy>=1.10",
"pip-audit>=2.7",
"semgrep>=1.70",
"pre-commit>=3.7",
"types-PyYAML",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "S", "B", "C4", "RUF"]
ignore = [
"S603", # subprocess call — shell=False enforced project-wide; reviewed
"S607", # partial executable path — acceptable for system binaries
]
[tool.bandit]
exclude_dirs = [".venv", "venv", ".git", "tests"]
skips = [
"B404", # subprocess import — shell=False enforced throughout
"B603", # subprocess without shell=True
"B607", # partial path — same rationale as ruff S607
]
[tool.mypy]
python_version = "3.11"
strict = true
ignore_missing_imports = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"@abstractmethod",
"raise NotImplementedError",
]