-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (47 loc) · 1.09 KB
/
pyproject.toml
File metadata and controls
54 lines (47 loc) · 1.09 KB
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
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"black>=23.3.0",
"elm327-emulator>=3.0.0",
"httpx>=0.24.0",
"mypy>=1.2.0",
"pytest>=7.3.1",
]
[project]
name = "elm327-exporter"
version = "0.1.0"
description = "A prometheus exporter for the ELM327"
authors = [
{name = "Hayley Hughes", email = "hayley@foxes.systems"},
]
dependencies = [
"starlette>=0.26.1",
"obd @ git+https://github.com/brendan-w/python-OBD@master",
"prometheus-client>=0.16.0",
"pint>=0.20.1",
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
[project.optional-dependencies]
serve = [
"uvicorn>=0.21.1",
"setuptools>=67.7.0",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.scripts]
emu = "elm"
format = "black src tests"
mypy = "mypy src tests"
serve = "uvicorn elm_exporter.app:app"
test = "pytest"
all = {composite = ['format', 'mypy', 'test', 'serve']}
[tool.pdm.resolution.overrides]
pint = "0.20.*"
[tool.mypy]
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
[[tool.mypy.overrides]]
module = ["obd", "elm"]
ignore_missing_imports = true