forked from ChelseaKR/qfer-preflight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (104 loc) · 2.95 KB
/
Copy pathpyproject.toml
File metadata and controls
119 lines (104 loc) · 2.95 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
[project]
name = "qfer-preflight"
version = "0.1.0"
description = "Offline pre-submission validator for California Energy Commission QFER Consumption CSV filings, where every finding cites the published rule it came from."
readme = "README.md"
requires-python = ">=3.12"
license = { text = "Apache-2.0" }
authors = [{ name = "Chelsea Kelly-Reif" }]
keywords = ["qfer", "cec", "csv", "validation", "energy", "regulatory-reporting"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Utilities",
]
# The validator itself runs on the standard library alone. Keeping the runtime
# dependency set empty is deliberate: an offline tool that a utility runs over
# its own filing data should not drag in a supply chain to do it.
dependencies = []
[project.urls]
Homepage = "https://github.com/ChelseaKR/qfer-preflight"
Source = "https://github.com/ChelseaKR/qfer-preflight"
Issues = "https://github.com/ChelseaKR/qfer-preflight/issues"
Changelog = "https://github.com/ChelseaKR/qfer-preflight/blob/main/CHANGELOG.md"
[project.scripts]
qfer-preflight = "qfer_preflight.cli:main"
[dependency-groups]
dev = [
"pytest>=8.4.0",
"pytest-cov>=6.0.0",
"ruff>=0.15.0",
"mypy>=1.18.0",
"bandit>=1.8.0",
"pip-audit>=2.9.0",
]
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/qfer_preflight"]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--cov=qfer_preflight",
"--cov-report=term-missing",
"--cov-fail-under=90",
]
[tool.coverage.run]
branch = true
source = ["src/qfer_preflight"]
[tool.coverage.report]
fail_under = 90
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[tool.ruff]
line-length = 100
target-version = "py312"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C90", # mccabe complexity
"UP", # pyupgrade
"SIM", # flake8-simplify
"RUF", # ruff-specific
]
ignore = [
# The rule quotes and code tables in this project are transcribed from
# published CEC documents. Line-splitting them would obscure the fidelity
# that is the whole point, so long strings are tolerated there.
"E501",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B011"]
[tool.mypy]
python_version = "3.12"
files = ["src", "tests"]
strict = true
warn_unreachable = true
warn_unused_ignores = false
disallow_untyped_defs = true
no_implicit_reexport = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.bandit]
exclude_dirs = ["tests", ".venv"]