forked from ChelseaKR/ceqa-preflight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (109 loc) · 3.57 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (109 loc) · 3.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
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
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "ceqa-preflight"
version = "0.1.0"
description = "Local, source-cited preflight checks for CEQA Submit filing packages."
readme = "README.md"
requires-python = ">=3.12,<3.15"
license = { file = "LICENSE" }
authors = [{ name = "CEQA Preflight contributors" }]
keywords = ["ceqa", "california", "document-validation", "pdf", "government"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Office/Business",
]
dependencies = [
"jinja2>=3.1.6,<4",
"pdfminer.six>=20250506",
"pydantic>=2.10,<3",
"pypdf>=5.0,<7",
"pyyaml>=6.0.2,<7",
"typer>=0.15,<1",
]
[project.optional-dependencies]
# The opt-in `ai` command group (ADR 0002). The default `check` path never imports it.
ai = ["anthropic>=0.125,<1"]
ai-bedrock = ["anthropic[bedrock]>=0.125,<1"]
[project.urls]
Documentation = "https://github.com/ChelseaKR/ceqa-preflight#readme"
Issues = "https://github.com/ChelseaKR/ceqa-preflight/issues"
Source = "https://github.com/ChelseaKR/ceqa-preflight"
[project.scripts]
ceqa-preflight = "ceqa_preflight.cli:app"
[dependency-groups]
dev = [
"anthropic[bedrock]>=0.125,<1",
"bandit[toml]>=1.8.3",
"hypothesis>=6.127",
"mypy>=1.18",
"pip-audit>=2.9",
"pre-commit>=4.2",
"pytest>=8.3",
"pytest-cov>=6.0",
"pytest-socket>=0.7",
"ruff>=0.15",
"types-pyyaml>=6.0.12",
]
[tool.hatch.build.targets.wheel]
packages = ["src/ceqa_preflight"]
include = [
"src/ceqa_preflight/**/*.py",
"src/ceqa_preflight/**/*.yaml",
"src/ceqa_preflight/**/*.j2",
]
# The committed official-source corpus (ADR 0002) ships inside the package so the opt-in
# `ai explain` command can verify quotes against it after installation.
[tool.hatch.build.targets.wheel.force-include]
"corpus/manifest.json" = "ceqa_preflight/corpus/manifest.json"
"corpus/passages.json" = "ceqa_preflight/corpus/passages.json"
"corpus/text" = "ceqa_preflight/corpus/text"
[tool.ruff]
target-version = "py312"
line-length = 100
extend-exclude = ["work"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "S", "UP", "SIM", "C90", "RUF"]
ignore = ["S101", "S105"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S108"]
# One regex per line reads better than wrapped regexes; the guard is reviewed as a list.
"src/ceqa_preflight/ai/guard.py" = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["ceqa_preflight"]
[tool.mypy]
python_version = "3.12"
strict = true
warn_unreachable = true
packages = ["ceqa_preflight"]
[[tool.mypy.overrides]]
# Optional extra, imported lazily; the default path must type-check without it installed.
module = ["anthropic", "anthropic.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
# --disable-socket enforces the README's "no network requests at runtime" promise. Without
# it pytest-socket is installed but never activated, so a regression that added a network
# call would pass the whole suite. Tests that legitimately need a socket opt in per-test
# with @pytest.mark.enable_socket.
addopts = "-ra --strict-markers --disable-socket"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["ceqa_preflight"]
[tool.coverage.report]
fail_under = 90
show_missing = true
skip_covered = true
[tool.bandit]
targets = ["src"]
exclude_dirs = ["tests"]