-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
177 lines (161 loc) · 3.83 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
171
172
173
174
175
176
177
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "aioworkers-prometheus"
dynamic = ["version"]
description = "aioworkers prometheus integration"
readme = "README.rst"
license = "Apache-2.0"
requires-python = ">=3.7"
authors = [
{ name = "Alexander Malev", email = "[email protected]" },
]
keywords = [
"aioworkers",
"prometheus",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"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 = [
"aioworkers>=0.12.0",
"prometheus-client>=0.14",
]
[project.optional-dependencies]
dev-test = [
"aioworkers==0.27.0",
"prometheus-client==0.17.1",
"coverage[toml]==7.2.7",
"pytest==7.4.3",
"pytest-aioworkers[aiohttp]==0.4",
"pytest-mock==3.11.1",
"pyyaml==6.0.1",
]
dev-lint = [
"ruff==0.5.1",
"isort==5.13.2",
"black==24.3.0",
"mypy==1.9.0",
]
[project.entry-points.aioworkers]
prometheus = "aioworkers_prometheus"
[project.urls]
Homepage = "https://github.com/aioworkers/aioworkers-prometheus"
Documentation = "https://github.com/aioworkers/aioworkers-prometheus#readme"
Issues = "https://github.com/aioworkers/aioworkers-prometheus/issues"
Source = "https://github.com/aioworkers/aioworkers-prometheus"
[tool.hatch.version]
path = "aioworkers_prometheus/__init__.py"
[tool.hatch.build]
include = [
"/aioworkers_prometheus",
]
[tool.hatch.envs.default]
features = [
"dev-test",
]
[tool.hatch.envs.default.scripts]
cov = [
"coverage run -m pytest",
"coverage report",
]
[[tool.hatch.envs.all.matrix]]
python = [
"3.7",
"3.8",
"3.9",
"3.10",
"3.11",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = [
"aioworkers_prometheus",
"tests",
]
addopts = [
"--doctest-modules",
]
[tool.coverage.run]
branch = false
parallel = false
source = [
"aioworkers_prometheus",
"tests",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.black]
line-length = 120
target-version = [
"py37",
"py38",
"py39",
"py310",
"py311",
]
[tool.isort]
profile = "black"
multi_line_output = 3
force_single_line = false
import_heading_localfolder = true
include_trailing_comma = true
[tool.mypy]
follow_imports = "silent"
strict_optional = true
warn_redundant_casts = true
ignore_missing_imports = true
check_untyped_defs = true
[tool.ruff]
line-length = 120
[tool.hatch.envs.lint]
python = "3.8"
features = [
"dev-lint",
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:aioworkers_prometheus tests}"
style = [
"ruff {args:aioworkers_prometheus tests}",
"isort --check-only --diff {args:aioworkers_prometheus tests}",
"black --check --diff {args:aioworkers_prometheus tests}",
]
fmt = [
"ruff --fix {args:aioworkers_prometheus tests}",
"isort {args:aioworkers_prometheus tests}",
"black {args:aioworkers_prometheus tests}",
"style",
]
all = [
"style",
"typing",
]
[tool.hatch.envs.template]
detached = true
dependencies = [
"scaraplate",
]
[tool.hatch.envs.template.scripts]
update = [
"scaraplate rollup --no-input {args:../cookiecutter-aioworkers-plugin} ."
]
clone = [
"git clone https://github.com/aioworkers/cookiecutter-aioworkers-plugin {args:../cookiecutter-aioworkers-plugin}"
]