-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
179 lines (162 loc) · 3.28 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[build-system]
requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"]
build-backend = "setuptools.build_meta"
[project]
name = "dvc-render"
description = "Dvc Render"
readme = "README.rst"
license = {text = "Apache-2.0"}
authors = [{name = "Iterative", email = "[email protected]"}]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Development Status :: 4 - Beta"
]
requires-python = ">=3.9"
dynamic = ["version"]
dependencies = []
[project.urls]
Issues = "https://github.com/iterative/dvc-render/issues"
Source = "https://github.com/iterative/dvc-render"
[project.optional-dependencies]
table = [
"tabulate>=0.8.7",
"flatten_dict<1,>=0.4.1"
]
markdown = [
"dvc-render[table]",
"matplotlib"
]
docs = [
"mkdocs>=1.5.2,<2",
"mkdocs-gen-files>=0.5.0,<1",
"mkdocs-material>=9.3.1,<10",
"mkdocs-section-index>=0.3.6,<1",
"mkdocstrings-python>=1.6.3,<2"
]
tests = [
"dvc-render[table,markdown]",
"pytest>=7,<9",
"pytest-cov>=4.1.0",
"pytest-sugar",
"pytest-mock"
]
dev = [
"dvc-render[tests,docs]",
"mypy==1.14.0"
]
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools_scm]
[tool.pytest.ini_options]
addopts = "-ra"
[tool.coverage.run]
branch = true
source = ["dvc_render", "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
files = ["src", "tests"]
[[tool.mypy.overrides]]
module = [
"matplotlib.*",
"tabulate"
]
ignore_missing_imports = true
[tool.codespell]
ignore-words-list = "fpr"
skip = "CODE_OF_CONDUCT.rst"
[tool.ruff]
output-format = "full"
show-fixes = true
[tool.ruff.lint]
ignore = [
"S101", # assert
"PLR2004", # magic-value-comparison
"PLW2901", # redefined-loop-name
"ISC001", # single-line-implicit-string-concatenation
"SIM105", # suppressible-exception
"SIM108", # if-else-block-instead-of-if-exp
"D203", # one blank line before class
"D213", # multi-line-summary-second-line
"RUF012", # mutable class attributes
"PT007" # value types in pytest.mark.parametrize
]
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"UP",
"YTT",
"ASYNC",
"S",
"BLE",
"B",
"A",
"C4",
"T10",
"EXE",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SLOT",
"SIM",
"TID",
"TCH",
"ARG",
"PGH",
"PLC",
"PLE",
"PLR",
"PLW",
"TRY",
"FLY",
"PERF101",
"RUF"
]
[tool.ruff.lint.per-file-ignores]
"noxfile.py" = ["D", "PTH"]
"tests/**" = ["S", "ARG001", "ARG002", "ANN"]
"docs/**" = ["INP"]
[tool.ruff.lint.flake8-type-checking]
strict = true
[tool.ruff.lint.isort]
known-first-party = ["{{ cookiecutter.package_name }}"]