-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
170 lines (157 loc) · 3.6 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
[build-system]
build-backend = "pdm.backend"
requires = [
"pdm-backend",
]
[project]
name = "pdm-wheel"
description = "PDM plugin that save your requirements as wheels, similar to pip-wheel"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Gabriel Dugny", email = "pdm-wheel@dugny.me" }]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
dynamic = [
"version",
]
dependencies = [
]
[project.optional-dependencies]
pdm = [
"pdm!=2.13.0,!=2.13.1,>=2.7.4",
]
[project.urls]
"Bug Tracker" = "https://github.com/GabDug/pdm-wheel/issues"
"Changelog" = "https://github.com/GabDug/pdm-wheel/blob/main/CHANGELOG.md"
"Homepage" = "https://github.com/GabDug/pdm-wheel"
[project.entry-points.pdm]
pdm-wheel = "pdm_wheel:register_pdm_plugin"
[tool.pdm]
plugins = ["sync-pre-commit-lock", "-e ."]
[tool.pdm.version]
source = "scm"
write_to = "pdm_wheel/_version.py"
write_template = "__version__: str = \"{}\"\n"
[tool.pdm.build]
package-dir = "src"
includes = ["src", "src/pdm_wheel"]
excludes = [
"tests/.*",
"tests/build",
"tests/fixtures/.*",
"tests/fixtures/wheels",
".venv",
".pdm-python",
]
[tool.pdm.scripts]
fmt = {cmd="black .", help="Run black formatter"}
test = "pytest"
test-cov = {cmd="pytest --junitxml=junit/test-results.xml --cov --cov-report=xml --cov-report=html --cov-report=term-missing", help="Run tests with coverage"}
doc = {shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview"}
lint = "pre-commit run --all-files"
lint-mypy = {cmd="mypy src", help="Run mypy type checker"}
lint-ruff = {cmd="ruff check .", help="Run ruff linter"}
[tool.pdm.dev-dependencies]
dev = [
"black>=22.10.0",
"mypy>=1.4",
"pylint>=2.15.4",
"pytest>=7.2.0",
"pytest-cov>=4.0.0",
"pdm>=2.4.0",
"ruff>=0.0.270",
"parver>=0.4",
"ipdb>=0.13.13",
"tox>=4.14.2",
"tox-pdm>=0.7.2",
"tox-gh>=1.3.1",
]
testtox= [
"pytest>=7.2.0",
"pytest-cov>=4.0.0",
"click>=8.1.7",
]
[tool.black]
line-length = 120
extend-exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| tests/fixtures
)/
'''
[tool.ruff]
exclude = [".git", "tests/fixtures/*", "env", "dist", "build", "__pypackages__"]
line-length = 120
[tool.ruff.lint]
extend-ignore = ["S101", "E501"]
extend-select = [
"E",
"F",
"W",
"TCH",
"I",
"Q000",
"TCH",
"I001",
"S",
"T",
"PTH",
"PYI",
"RET",
"D209",
"D202",
"EM101",
]
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
norecursedirs = "*.egg .eggs dist build docs .tox .git __pycache__ node_modules .venv __pypackages__"
[tool.coverage.paths]
source =[
"src",
"*/site-packages"
]
[tool.coverage.run]
branch = true
parallel = true
include = ["src/*"]
omit = ["*/tests/*"]
source = ["src", "tests"]
[tool.coverage.report]
show_missing = true
precision = 2
exclude_lines = [
"def __repr__",
"if TYPE_CHECKING:",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
'class .*\bProtocol\):',
'@(abc\.)?abstractmethod]',
"except ImportError:",
"# nocov",
]
[tool.mypy]
files = ["src"]
strict = true