-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (71 loc) · 2.19 KB
/
Copy pathpyproject.toml
File metadata and controls
82 lines (71 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
81
82
[project]
name = "plumbline"
version = "0.1.1"
description = "Measure whether a decision model's probabilities are trustworthy on your own labeled data."
readme = "README.md"
requires-python = ">=3.12"
license = { text = "Apache-2.0" }
authors = [{ name = "TMHSDigital" }]
keywords = ["calibration", "classification", "evaluation", "typesafe", "jev"]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
# Each floor is the oldest release the whole test suite passes on, checked by
# the lowest-direct job in CI. The SDKs are capped below their next breaking
# series, since an adapter depends on their request and response shapes.
dependencies = [
"numpy>=2.1",
"scipy>=1.14.1",
"typer>=0.16",
"typesafe-sdk>=0.5.7,<0.8",
"anthropic>=0.77,<2",
]
[project.optional-dependencies]
# Local checkpoints are opt-in so plumbline installs and runs hosted-only on a
# machine with no GPU.
local = [
"torch>=2.5",
"transformers>=4.46",
]
[project.scripts]
plumbline = "plumbline.cli:app"
[project.urls]
Homepage = "https://github.com/TMHSDigital/plumbline"
Source = "https://github.com/TMHSDigital/plumbline"
[dependency-groups]
dev = [
"pytest>=8.3",
"pytest-cov>=6.0",
"ruff>=0.8",
"mypy>=1.13",
# The CLI tests read stderr apart from stdout, which Click's test runner
# does from 8.2.
"click>=8.2",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/plumbline"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
[tool.ruff]
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "SIM", "RUF"]
[tool.mypy]
python_version = "3.12"
strict = true
files = ["src/plumbline"]
[[tool.mypy.overrides]]
# torch and transformers are the optional [local] extra. plumbline type-checks
# on a machine that has neither, so the local readout's imports are unresolved
# there rather than wrong.
module = ["torch.*", "transformers.*"]
ignore_missing_imports = true