-
Notifications
You must be signed in to change notification settings - Fork 38
/
pyproject.toml
151 lines (136 loc) · 3.7 KB
/
pyproject.toml
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = ["setuptools>=61", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"
[project]
description = "Experiments logger for ML projects."
name = "dvclive"
readme = "README.md"
keywords = [
"ai",
"metrics",
"collaboration",
"data-science",
"data-version-control",
"developer-tools",
"git",
"machine-learning",
"reproducibility"
]
license = {text = "Apache License 2.0"}
maintainers = [{name = "Iterative", email = "[email protected]"}]
authors = [{name = "Iterative", email = "[email protected]"}]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
dynamic = ["version"]
dependencies = [
"dvc>=3.48.4",
"dvc-render>=1.0.0,<2",
"dvc-studio-client>=0.20,<1",
"funcy",
"gto",
"ruamel.yaml",
"scmrepo>=3,<4",
"psutil",
"pynvml"
]
[project.optional-dependencies]
image = ["numpy", "pillow"]
sklearn = ["scikit-learn"]
plots = ["scikit-learn", "pandas", "numpy"]
markdown = ["matplotlib"]
tests = [
"pytest>=7.2.0,<9.0",
"pytest-sugar>=0.9.6,<2.0",
"pytest-cov>=3.0.0,<6.0",
"pytest-mock>=3.8.2,<4.0",
"dvclive[image,plots,markdown]",
"ipython",
"pytest_voluptuous",
"dpath",
"transformers[torch]",
"tf-keras"
]
dev = [
"dvclive[all,tests]",
"mypy==1.14.0",
"types-PyYAML"
]
mmcv = ["mmcv"]
tf = ["tensorflow"]
xgb = ["xgboost"]
lgbm = ["lightgbm"]
huggingface = ["transformers", "datasets"]
fastai = ["fastai"]
lightning = ["lightning>=2.0", "torch", "jsonargparse[signatures]>=4.26.1"]
optuna = ["optuna"]
all = [
"dvclive[image,mmcv,tf,xgb,lgbm,huggingface,fastai,lightning,optuna,plots,markdown]"
]
[project.urls]
Homepage = "https://github.com/iterative/dvclive"
Documentation = "https://dvc.org/doc/dvclive"
Repository = "https://github.com/iterative/dvclive"
Changelog = "https://github.com/iterative/dvclive/releases"
Issues = "https://github.com/iterative/dvclive/issues"
[tool.setuptools]
license-files = ["LICENSE"]
platforms = ["any"]
[tool.setuptools.packages.find]
exclude = ["tests", "tests.*"]
where = ["src"]
namespaces = false
[tool.setuptools_scm]
write_to = "src/dvclive/_dvclive_version.py"
[tool.pytest.ini_options]
addopts = "-ra"
markers = """
vscode: mark a test that verifies behavior that VS Code relies on
studio: mark a test that verifies behavior that Studio relies on
"""
[tool.coverage.run]
branch = true
source = ["dvclive", "tests"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"raise AssertionError",
"@overload"
]
[tool.mypy]
# Error output
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_traceback = true
pretty = true
check_untyped_defs = false
# Warnings
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
ignore_missing_imports = true
files = ["src", "tests"]
[tool.codespell]
ignore-words-list = "fpr"
[tool.ruff.lint]
ignore = ["N818", "UP006", "UP007", "UP035", "UP038", "B905", "PGH003", "SIM103"]
select = ["F", "E", "W", "C90", "N", "UP", "YTT", "S", "BLE", "B", "A", "C4", "T10", "EXE", "ISC", "INP", "PIE", "T20", "PT", "Q", "RSE", "RET", "SLF", "SIM", "TID", "TCH", "INT", "ARG", "PGH", "PL", "TRY", "NPY", "RUF"]
[tool.ruff.lint.per-file-ignores]
"noxfile.py" = ["D", "PTH"]
"tests/*" = ["S101", "INP001", "SLF001", "ARG001", "ARG002", "ARG005", "PLR2004", "NPY002"]
[tool.ruff.lint.pylint]
max-args = 10