-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (67 loc) · 2.21 KB
/
Copy pathpyproject.toml
File metadata and controls
76 lines (67 loc) · 2.21 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "perimeter"
version = "0.1.0"
description = "Coverage and completeness measures over California's public wildfire datasets"
requires-python = ">=3.12"
license = "Apache-2.0"
authors = [
{ name = "Chelsea Kelly-Reif" },
]
readme = "README.md"
dependencies = []
[dependency-groups]
dev = [
"ruff>=0.16.4",
"mypy>=2.3.1",
"pytest>=8.0",
"pytest-cov>=5.0",
"pytest-xdist>=3.6",
"pip-audit>=2.7",
]
[tool.hatch.build.targets.wheel]
packages = ["src/perimeter"]
# --- 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]
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"]
# No omit list. acquire.py was excluded here until 2026-08-15, on the reasoning that it
# is run by hand and never in CI. That is true of the *network call* and false of the
# module: every refusal it makes (HTTPS only, stop on 401/403/429, refuse a non-JSON
# challenge page, pause between pages) is testable with the socket substituted, and
# tests/test_acquire.py now does exactly that. Omitting it moved the reported figure from
# 88% to 100% and let the 90% floor pass over the one module carrying this project's
# stated promises about somebody else's server.
[tool.coverage.report]
fail_under = 90 # CODE-QUALITY-STANDARD §2 floor for a measurement library
show_missing = true