-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
156 lines (134 loc) · 3.02 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sliplib"
dynamic = ["version"]
description = "Slip package"
readme = "README.md"
license = "MIT"
authors = [
{ name = "Ruud de Jong", email = "ruud.de.jong@xs4all.nl" },
]
keywords = [
"RFC1055",
"framing",
"message",
"protocol",
"slip",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.8"
dependencies = []
[project.urls]
"Source code" = "https://github.com/rhjdjong/SlipLib"
[tool.hatch.version]
path = "VERSION"
#pattern = "VERSION = (?P<version>.*)$"
[tool.hatch.build.targets]
packages = ["src/sliplib"]
[tool.hatch.envs.default]
python = "3.12"
dependencies = [
"pytest",
"pytest-mock",
"semantic-version-check",
]
[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.test]
extra-dependencies = [
"coverage[toml]>=6.5",
"pytest-asyncio",
]
[tool.hatch.envs.test.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
"coverage json",
]
cov = [
"test-cov",
"cov-report",
]
[tool.hatch.envs.types]
python = "3.12"
extra-dependencies = [
"mypy>=1.0.0",
"typing_extensions",
]
[tool.hatch.envs.types.scripts]
check = "mypy --strict --install-types --non-interactive {args:src tests examples}"
[tool.hatch.envs.style]
dependencies = [
"isort",
"black",
]
[tool.hatch.envs.style.scripts]
isort-check = "isort --check-only {args:src tests examples docs}"
black-check = "black --check {args:src tests examples docs}"
isort-fix = "isort {args:src tests examples docs}"
black-fix = "black {args:src tests examples docs}"
check = [
"- isort-check",
"black-check",
]
fix = [
"isort-fix",
"black-fix",
]
[tool.coverage.run]
source_pkgs = ["sliplib", "tests"]
branch = true
parallel = true
concurrency = [
"multiprocessing",
"thread",
]
[tool.coverage.paths]
sliplib = ["src/sliplib"]
tests = ["tests"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
fail_under = 100
[tool.hatch.build.targets.sdist]
include = [
"src",
]
[tool.hatch.envs.doc]
python = "3.12"
dependencies = [
"myst-parser",
"sphinx",
"sphinx_rtd_theme",
"sphinx-toolbox",
]
[tool.hatch.envs.doc.scripts]
build = "cd {root}/docs && make {args:html}"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
line_length = 120
[tool.mypy]
python_version = "3.8"
[tool.pytest.ini_options]
asyncio_mode = "auto"