- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
Latest commit
71 lines (61 loc) · 1.56 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (61 loc) · 1.56 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[project]
name = "maping-client"
version = "0.1.1"
description = "Zero-config RED-metrics client for FastAPI/Starlette, reporting to a mAPI-ng collector"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [{ name = "Arnaud ASSAD" }]
dependencies = [
"httpx>=0.27",
"protobuf>=5.0",
"psutil>=5.9",
]
[project.optional-dependencies]
zstd = ["zstandard>=0.22"]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"ruff>=0.6",
"mypy>=1.11",
"fastapi>=0.110",
"uvicorn>=0.30",
]
[project.urls]
Homepage = "https://github.com/arhuman/maping-python"
"mAPI-ng core" = "https://github.com/arhuman/maping"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/maping"]
[tool.hatch.build.targets.sdist]
# Explicit allowlist rather than relying on VCS-based defaults: this repo
# has local-only content (.jj/, .claude/) that must never end up in a
# public sdist regardless of git/jj commit state.
include = [
"src/maping",
"tests",
"examples",
"scripts",
"README.md",
"LICENSE",
]
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"src/maping/proto/**" = ["E", "W", "F", "I", "B", "C4", "UP"]
[tool.mypy]
python_version = "3.10"
packages = ["maping"]
mypy_path = "src"
exclude = ["src/maping/proto/"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"