forked from ChelseaKR/homeroom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (70 loc) · 2.19 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (70 loc) · 2.19 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "homeroom"
version = "0.1.0"
description = "California public school data, readable by the families it describes"
requires-python = ">=3.12"
license = "Apache-2.0"
authors = [
{ name = "Chelsea Kelly-Reif" },
]
readme = "README.md"
dependencies = []
[project.optional-dependencies]
# The ask layer (ADR 0003). The core package stays stdlib-only; homeroom.ask
# imports the SDK lazily and only when a provider is configured.
ask = ["anthropic>=1.0,<2"]
# Amazon Bedrock through the same SDK (adds boto3). Install for live
# evaluation runs against Bedrock; not needed for `make verify`.
ask-bedrock = ["anthropic[bedrock]>=1.0,<2"]
[dependency-groups]
dev = [
"ruff>=0.15.0",
"mypy>=1.18",
"pytest>=8.0",
"pytest-cov>=5.0",
"pytest-xdist>=3.6",
"pip-audit>=2.7",
]
[tool.hatch.build.targets.wheel]
packages = ["src/homeroom"]
# --- CODE-QUALITY-STANDARD §2 single-source ruff/mypy/pytest config ---
# Portfolio default: repos change values, not keys. Do not fork this block;
# edit STANDARDS/CODE-QUALITY-STANDARD.md upstream if the floor itself moves.
[tool.ruff]
# automation/ is vendored from portfolio-standards standards-init and tracked there;
# it is excluded here rather than diverging from the template.
extend-exclude = ["automation"]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "UP", "B", "SIM", "S", "C90", "RUF"]
ignore = ["E501"] # line length owned by the formatter
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"] # assert is expected in tests
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
strict = true
warn_return_any = true
disallow_untyped_defs = true
[tool.pytest.ini_options]
pythonpath = ["src"]
minversion = "8.0"
testpaths = ["tests"]
addopts = "-ra --strict-markers --strict-config --import-mode=importlib"
markers = [
"slow: > 2s",
"integration: requires an external service",
"smoke: critical path",
]
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
fail_under = 85 # apps/services/CLIs: >=85% — CODE-QUALITY-STANDARD §2
show_missing = true