-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml.in
More file actions
93 lines (78 loc) · 1.61 KB
/
Copy pathpyproject.toml.in
File metadata and controls
93 lines (78 loc) · 1.61 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
[build-system]
requires = [
"setuptools >= 77",
"setuptools-scm >= 8",
]
build-backend = "setuptools.build_meta"
[project]
name = "{pypi_name}"
description = "{short_desc}"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "{author}", email = "{author_email}" },
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = ["version"]
dependencies = []
[project.urls]
Homepage = "{url}"
[project.optional-dependencies]
dev = [
"build >= 1",
"checkdeps == 0.9.0",
"mypy == 1.19.1",
"ruff == 0.15.6",
]
test = [
"coverage >= 7.14",
"pytest >= 8",
]
[project.scripts]
# foo = "foo:bar"
[tool.setuptools]
packages = { find = {} }
include-package-data = true
[tool.setuptools.package-data]
"{package}" = ["py.typed"]
[tool.setuptools_scm]
version_file = "{package}/_version.py"
[tool.coverage.run]
branch = true
parallel = true
source = ["{package}", "tests"]
[tool.coverage.report]
fail_under = 70
precision = 1
show_missing = true
skip_covered = true
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = ["tests"]
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E4",
"E7",
"E9",
"F",
"I", # isort
]
[tool.ruff.lint.isort]
order-by-type = false
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"PLR2004", # Magic value used instead of constant (only in tests)
]