-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
137 lines (122 loc) · 3.03 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [{name = "REPLACE_FULL_NAME"}]
classifiers = [
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = []
description = "REPLACE_PACKAGE_DESCRIPTION"
dynamic = ["version"]
keywords = []
license = "MIT"
name = "REPLACE_PACKAGE_NAME"
readme = "README.md"
requires-python = ">=3.8,<3.12"
[project.urls]
Documentation = "https://REPLACE_GITHUB_USERNAME.github.io/REPLACE_PACKAGE_NAME"
Issues = "https://github.com/REPLACE_GITHUB_USERNAME/REPLACE_PACKAGE_NAME/issues"
Source = "https://github.com/REPLACE_GITHUB_USERNAME/REPLACE_PACKAGE_NAME"
[tool.hatch.version]
path = "src/REPLACE_PACKAGE_NAME/__init__.py"
[project.optional-dependencies]
docs = [
"mkdocs~=1.4.0",
"mkdocs-material~=8.5.4",
"mkdocs-git-revision-date-localized-plugin~=1.1.0",
"mkdocstrings[python]~=0.19.0",
]
quality = [
"black~=22.10.0",
"mypy~=1.4.0",
"pre-commit~=2.20.0",
"ruff~=0.0.263",
]
tests = [
"pytest~=7.1.2",
"pytest-cov~=4.1",
]
[tool.hatch.envs.quality]
features = [
"quality",
]
[tool.hatch.envs.quality.scripts]
check = [
"black --check --diff --preview src tests",
"ruff src tests",
]
format = [
"black --preview src tests",
"ruff --fix src tests",
"check",
]
typecheck = [
"mypy src --install-types --non-interactive",
]
[tool.mypy]
python_version = "3.8"
check_untyped_defs = true
ignore_missing_imports = true
warn_return_any = true
[tool.ruff]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
[tool.ruff.isort]
known-first-party = ["REPLACE_PACKAGE_NAME"]
[tool.hatch.envs.tests]
features = [
"tests",
]
[tool.hatch.envs.tests.scripts]
run = "pytest --cov=REPLACE_PACKAGE_NAME --cov-report=term-missing tests/ --durations 0 -s {args:tests}"
[[tool.hatch.envs.tests.matrix]]
python = ["38", "39", "310", "311"]
[tool.hatch.envs.docs]
features = [
"docs",
]
[tool.hatch.envs.docs.scripts]
build = [
"mkdocs build",
]
serve = [
"mkdocs serve",
]
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/.vscode",
"/docs",
"/.devcontainer",
"/.pre-commit-config.yaml",
"/.gitignore",
"/tests",
"/Dockerfile",
"/.dockerignore",
]