forked from br3ndonland/template-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
112 lines (95 loc) · 2.06 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling<1.22"]
[project]
authors = [{ email = "[email protected]", name = "Your Name" }]
classifiers = [
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
dependencies = []
description = "Your project description here."
dynamic = ["version"]
license = "MIT"
name = "template-python"
readme = "README.md"
requires-python = ">=3.10,<4"
[project.optional-dependencies]
checks = [
"mypy==1.9.0",
"ruff>=0.3,<0.4",
]
docs = [
"mkdocs-material>=9,<10",
]
tests = [
"coverage[toml]>=7,<8",
"httpx>=0.23,<1",
"pytest>=7,<8",
"pytest-mock>=3,<4",
]
[tool.coverage.report]
exclude_lines = ["if TYPE_CHECKING:", "pragma: no cover"]
fail_under = 70
show_missing = true
[tool.coverage.run]
command_line = "-m pytest"
source = ["template_python", "tests"]
[tool.hatch.build.targets.sdist]
include = ["/template_python"]
[tool.hatch.build.targets.wheel]
packages = ["template_python"]
[tool.hatch.envs.ci]
dev-mode = false
features = [
"checks",
"tests",
]
path = ".venv"
[tool.hatch.envs.default]
dev-mode = true
features = [
"checks",
"docs",
"tests",
]
path = ".venv"
[tool.hatch.envs.default.scripts]
check = [
"ruff check",
"ruff format --check",
"mypy",
"npx -s -y prettier@'^2' . --check",
"npx -s -y cspell --dot --gitignore *.md **/*.md",
]
format = [
"ruff check --fix",
"ruff format",
"npx -s -y prettier@'^2' . --write",
]
[tool.hatch.envs.production]
dev-mode = false
features = []
path = ".venv"
[tool.hatch.version]
path = "template_python/__init__.py"
[tool.mypy]
files = ["**/*.py"]
show_error_codes = true
strict = true
[tool.pytest.ini_options]
addopts = "-q"
minversion = "6.0"
testpaths = ["tests"]
[tool.ruff]
src = ["template_python", "tests"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
extend-select = ["I"]
[tool.ruff.lint.isort]
known-first-party = ["template_python", "tests"]