forked from ChelseaKR/ca-tariff-parse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (82 loc) · 2.41 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (82 loc) · 2.41 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
[project]
name = "ca-tariff-parse"
version = "0.1.0"
description = "Deterministic parser that turns published California electricity rate schedules into structured data, with a citation for every value."
readme = "README.md"
requires-python = ">=3.12"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "Chelsea Kelly-Reif" }]
keywords = ["tariff", "electricity", "rate-schedule", "provenance", "california"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Text Processing",
]
dependencies = [
"pdfplumber>=0.11.4",
]
[project.urls]
Homepage = "https://github.com/ChelseaKR/ca-tariff-parse"
Source = "https://github.com/ChelseaKR/ca-tariff-parse"
Issues = "https://github.com/ChelseaKR/ca-tariff-parse/issues"
[project.scripts]
ca-tariff-parse = "ca_tariff_parse.cli:main"
[dependency-groups]
dev = [
"pytest>=8.3",
"pytest-cov>=5.0",
"ruff>=0.15.0",
"mypy>=1.18.0",
"pre-commit>=4.0",
"jsonschema>=4.26.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/ca_tariff_parse"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --strict-markers --strict-config --cov=ca_tariff_parse --cov-report=term-missing --cov-fail-under=85"
markers = [
"realdoc: requires a real published source document present in sources/ (not redistributed in this repo)",
]
[tool.coverage.run]
branch = true
source = ["ca_tariff_parse"]
[tool.coverage.report]
fail_under = 85
show_missing = true
skip_covered = false
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", "F", "W", "I", "UP", "B", "SIM", "RUF", "C4", "PTH", "ARG", "C90", "S"]
ignore = ["RUF001", "RUF002", "RUF003"]
[tool.ruff.lint.mccabe]
# Complexity floor: a function past this is doing too much to review safely.
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"]
[tool.bandit]
exclude_dirs = ["tests"]
[tool.mypy]
python_version = "3.12"
packages = ["ca_tariff_parse"]
mypy_path = "src"
strict = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = "pdfplumber.*"
ignore_missing_imports = true