Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (64 loc) · 1.58 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (64 loc) · 1.58 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
[build-system]
requires = ["setuptools>=69", "setuptools_scm[toml]>=8", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "package-name" # TODO: replace
description = "Short description" # TODO: replace
readme = "README.md"
requires-python = ">=3.12"
license = { file = "LICENSE" }
authors = [{ name = "Your Name" }] # TODO: replace
dynamic = ["version"]
dependencies = [
"numpy",
]
# PEP 735 dependency groups. `uv sync` installs the `dev` group by default;
# tox installs exactly the group each environment needs from `uv.lock`.
[dependency-groups]
test = [
"pytest>=8",
"pytest-cov>=5",
]
lint = ["ruff"]
type = ["mypy"]
docs = ["interrogate"]
dev = [
"tox>=4",
"tox-uv",
{ include-group = "test" },
{ include-group = "lint" },
{ include-group = "type" },
{ include-group = "docs" },
]
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
version_scheme = "guess-next-dev"
local_scheme = "node-and-date"
tag_regex = "^(?:v)?(?P<version>\\d+(?:\\.\\d+)+)$"
fallback_version = "0.0.0"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-vv"
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
warn_unused_ignores = true
no_implicit_optional = true
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501"]
[tool.interrogate]
ignore-init-module = true
ignore-init-method = true
ignore-magic = true
ignore-module = true
ignore-private = true
exclude = ["tests"]
fail-under = 20
verbose = 1