Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (103 loc) · 3.47 KB
/
Copy pathpyproject.toml
File metadata and controls
118 lines (103 loc) · 3.47 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
[project]
name = "dstrack"
version = "0.2.0"
description = "A Python package for versioning and monitoring dataset changes throughout the machine learning lifecycle."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "Leonardo Ayala" }
]
keywords = ["dataset", "versioning", "monitoring", "machine learning", "mlops", "data science"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.11"
dependencies = [
"rich>=15.0.0",
"typer>=0.26.8",
]
[project.optional-dependencies]
# PDF reporting only. Kept out of the base install so the core stays as
# dependency-light as it is: most runs never write a report.
report = ["reportlab>=4.2"]
[project.urls]
GitHub = "https://github.com/leoyala/dstrack"
[project.scripts]
dstrack = "dstrack._cli:app"
dstrack-benchmark = "dstrack._benchmark:app"
[build-system]
requires = ["uv_build>=0.11.28,<0.14.0"]
build-backend = "uv_build"
# -----------------------------------------------------------------------------
# Ruff: linter + formatter
# -----------------------------------------------------------------------------
[tool.ruff]
line-length = 88
src = ["src", "tests"]
[tool.ruff.lint]
# A pragmatic, high-signal rule set.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"B", # flake8-bugbear (likely bugs)
"UP", # pyupgrade (modernize syntax)
"SIM", # flake8-simplify
"C4", # flake8-comprehensions
"PERF", # perflint (performance anti-patterns)
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line length is handled by the formatter
]
[tool.ruff.lint.per-file-ignores]
# Tests can use assert, magic values, etc.
"tests/**" = ["B", "S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
docstring-code-format = true
quote-style = "double"
# -----------------------------------------------------------------------------
# static type checking
# -----------------------------------------------------------------------------
[tool.ty.environment]
python-version = "3.11"
[tool.ty.src]
include = ["src", "tests"]
exclude = ["src/generated"]
[tool.ty.rules]
unused-ignore-comment = "error"
# -----------------------------------------------------------------------------
# coverage
# -----------------------------------------------------------------------------
[tool.coverage.run]
# Manual helper for trying out `dstrack diff`; deliberately untested.
omit = ["sample_data.py"]
# -----------------------------------------------------------------------------
# codespell: spell-checking for code, docstrings, and docs
# -----------------------------------------------------------------------------
[tool.codespell]
ignore-words-list = "nd,hist,ans"
skip = "*.lock,*.csv,*.parquet,./data,./datasets"
[dependency-groups]
dev = [
"jsonschema>=4.26.0",
"mkdocstrings-python>=2.0.5",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"zensical>=0.0.50",
"reportlab>=4.2"
]