-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (76 loc) · 2.49 KB
/
pyproject.toml
File metadata and controls
85 lines (76 loc) · 2.49 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
[project]
name = "legis"
version = "1.0.0rc4"
description = "Legis — the git/CI + governance layer of the Weft suite"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "John Morrissey", email = "john@foundryside.dev" }
]
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.115",
"pydantic>=2",
"pyyaml>=6.0",
"uvicorn[standard]>=0.30",
"sqlalchemy>=2.0",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: Software Development :: Quality Assurance",
]
[project.urls]
Homepage = "https://github.com/foundryside-dev/legis"
Repository = "https://github.com/foundryside-dev/legis"
Issues = "https://github.com/foundryside-dev/legis/issues"
[project.scripts]
legis = "legis.cli:main"
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"httpx>=0.27",
"mypy>=1.19",
"ruff>=0.8",
"types-PyYAML>=6.0",
]
[build-system]
requires = ["uv_build>=0.10.2,<0.11.0"]
build-backend = "uv_build"
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
filterwarnings = [
"error",
# Third-party: Starlette's TestClient warns about its bundled httpx usage.
# Matched by message (category is StarletteDeprecationWarning, not DeprecationWarning).
"ignore:Using `httpx` with `starlette.testclient` is deprecated",
]
[tool.mypy]
python_version = "3.12"
files = ["src/legis"]
show_error_codes = true
warn_unused_configs = true
[tool.ruff]
target-version = "py312"
src = ["src"]
[tool.ruff.lint]
# Ruff's default rule set (pyflakes F + the safe slice of pycodestyle E). This
# is the level that caught the F401 unused imports this floor-raise cleared; the
# CI gate (`ruff check src`) keeps src clean. Import-sorting (I) / pyupgrade (UP)
# are deliberately not enabled here — turning them on would impose unrelated
# reformatting churn and trip F821 on the honesty-gate test fixtures that inject
# `handler` dynamically; out of scope for a lint-gating change.
select = ["E4", "E7", "E9", "F"]
[tool.coverage.report]
# Global silent-regression floor. CI passes --cov-fail-under explicitly (same
# value) so a local `pytest --cov` matches the gate. Per-package floors for the
# security-critical packages are enforced separately by
# scripts/check_coverage_floors.py.
fail_under = 88