-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (96 loc) · 3 KB
/
pyproject.toml
File metadata and controls
110 lines (96 loc) · 3 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
[project]
name = "model-ledger"
version = "0.7.2"
description = "Developer-first model inventory and governance framework for SR 11-7, EU AI Act, and NIST AI RMF compliance"
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
authors = [
{ name = "Vignesh Narayanaswamy", email = "vigneshn@block.xyz" },
{ name = "Block", email = "opensource@block.xyz" },
]
keywords = ["mlops", "model-governance", "model-inventory", "model-risk", "sr-11-7", "compliance"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.28.1",
"pydantic>=2.0,<3",
]
[project.optional-dependencies]
cli = ["typer>=0.9", "rich>=13.0"]
excel = ["openpyxl>=3.1"]
introspect-sklearn = ["scikit-learn>=1.0"]
introspect-xgboost = ["xgboost>=1.7"]
introspect-lightgbm = ["lightgbm>=3.0"]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.8",
"mypy>=1.0",
]
snowflake = ["snowflake-connector-python>=3.0", "pandas>=2.0"]
mcp = ["mcp[cli]>=1.7.1,<2"]
rest = ["httpx>=0.28"]
rest-api = ["fastapi>=0.115", "uvicorn>=0.30"]
github = ["httpx>=0.28"]
all = ["snowflake-connector-python>=3.0", "pandas>=2.0", "httpx>=0.28"]
[project.scripts]
model-ledger = "model_ledger.cli:app"
[project.entry-points."model_ledger.introspectors"]
lightgbm = "model_ledger.introspect.lightgbm:LightGBMIntrospector"
sklearn = "model_ledger.introspect.sklearn:SklearnIntrospector"
xgboost = "model_ledger.introspect.xgboost:XGBoostIntrospector"
[project.urls]
Homepage = "https://github.com/block/model-ledger"
Documentation = "https://block.github.io/model-ledger"
Changelog = "https://github.com/block/model-ledger/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/block/model-ledger/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/model_ledger"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"SIM", # flake8-simplify
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "E402"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
[tool.coverage.run]
source = ["src/model_ledger"]
branch = true
[tool.coverage.report]
fail_under = 90
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]