-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
53 lines (41 loc) · 1.18 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
[build-system]
requires = ["setuptools >= 61.0", "autosemver"]
# build-backend = "setuptools.build_meta"
[project]
requires-python = ">=3.12"
dependencies = [
"autosemver"
]
name = "mypackage"
dynamic = ["version"]
authors = [{ name = "John Doe", email = "[email protected]" }]
description = "A minimal setup for a template package."
[project.optional-dependencies]
test = ["pytest", "pytest-cov", "parameterized"]
docs = ["sphinx", "sphinx-copybutton", "sphinx-rtd-theme"]
lint = ["ruff"]
dev = ["mypackage[test,docs,lint]"]
[tool.setuptools.dynamic]
version = { attr = "mypackage.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
include = ["mypackage*"]
[tool.pytest.ini_options]
addopts = "--cov=mypackage"
markers = [
"slow: Marks slow tests",
]
filterwarnings = [
"ignore::DeprecationWarning:autosemver.*:",
"ignore::DeprecationWarning:pkg_resources.*:",
]
[tool.coverage.run]
omit = ["*__init__.py"]
[tool.ruff]
src = ["src", "tests"]
include = ["src/**.py"]
line-length = 120
[tool.ruff.lint]
select = ["F", "E", "W", "A", "PLC", "PLE", "PLW", "I", "N816", "ANN001", "ANN201", "ANN202", "ANN205", "ANN206"]
[tool.ruff.lint.flake8-type-checking]
strict = true