-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
118 lines (104 loc) · 2.62 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
[project]
name = "pdm-build-locked"
dynamic = ["version"]
description = """
pdm-build-locked is a pdm plugin to add locked packages as additional \
optional dependency groups to the distribution metadata"""
readme = "README.rst"
keywords = [
"pdm",
"plugin"
]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
authors = [
{name = "sigma67", email = "sigma67.github@gmail.com"},
{name = "Frost Ming", email = "me@frostming.com"},
]
dependencies = [
"tomli; python_version < \"3.11\""
]
requires-python = ">=3.9"
[project.entry-points.pdm]
build-locked = "pdm_build_locked.plugin:main"
[project.entry-points."pdm.build.hook"]
build-locked = "pdm_build_locked.backend:BuildLockedHook"
[project.entry-points.hatch]
build-locked = "pdm_build_locked.hatchling"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
#########
# TOOLS #
#########
[tool.pdm.version]
source = "scm"
[tool.pdm.build]
package-dir = "src"
[tool.pdm.dev-dependencies]
dev = [
"pdm[pytest]>=2.20.0",
"pytest>=7.4.0",
"pkginfo>=1.9.6",
"pytest-cov>=4.1.0",
"pre-commit>=3.5.0",
"pdm-backend>=2.1.7",
"hatchling>=1.20.0",
"build>=1.0.3",
"ruff>=0.4.8",
"mypy>=1.10.0"
]
doc = [
"sphinx>=7.1.2",
"sphinx-rtd-theme>=2.0.0",
"tomli>=2.0.1",
"sphinx-design>=0.5.0",
]
[tool.ruff]
line-length = 120
src = ["src"]
target-version = "py38"
[tool.ruff.lint]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"YTT", # flake8-2020
]
extend-ignore = ["B018", "B019"]
mccabe.max-complexity = 10
[tool.mypy]
## mypy static typechecker settings
## see https://mypy.readthedocs.io/en/stable/config_file.html
## justify single line via:
## # type: ignore[<error-code>]
## # type: ignore
files = [
"src/",
"tests/" # enable/disable linting within tests directory
]
mypy_path = "src"
show_error_codes = true
exclude = [
"tests/data"
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--verbose --cov --cov-report=term --cov-report=html --cov-report=xml --cov-config=pyproject.toml"
[tool.coverage.run]
branch = true
source = ["src"]
omit = ["backend.py", "hatchling.py", "/tmp"]
[tool.coverage.report]
show_missing = true