-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (85 loc) · 2.47 KB
/
pyproject.toml
File metadata and controls
96 lines (85 loc) · 2.47 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
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
[build-system]
requires = ["maturin>=1.9,<2.0"]
build-backend = "maturin"
[project]
name = "promrs"
dynamic = ["version"]
description = "Fast Prometheus client for Python backed by Rust"
requires-python = ">=3.12"
license = {text = "Apache-2.0"}
authors = [
{name = "Yury Pliner", email = "yury.pliner@gmail.com"}
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Rust",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
]
[project.optional-dependencies]
dev = [
"pytest==8.3.5",
"ruff==0.8.4",
"pyright==1.1.407",
"setuptools",
"maturin>=1.9,<2.0",
"pyperf>=2.7",
"prometheus-client>=0.21",
]
[tool.maturin]
features = ["pyo3/extension-module"]
python-source = "python"
module-name = "promrs._promrs"
[tool.maturin.environment]
PYO3_USE_ABI3_FORWARD_COMPATIBILITY = "1"
[tool.ruff]
line-length = 120
target-version = "py312"
exclude = [
".git",
".claude",
".idea",
"__pycache__",
"venv",
"benchmarks",
]
[tool.ruff.lint]
select = ["SIM","C4", "ANN", "N", "LOG", "G", "F", "E", "W", "Q", "I", "UP", "T20", "COM", "RSE", "RET", "ISC", "ASYNC", "SLOT", "RUF"]
ignore = ["COM812", "ISC001", "ASYNC109", "RUF018", "ANN401", "ANN204", "E501"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["UP007", "E741", "UP035", "RUF009"]
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint.isort]
combine-as-imports = true
split-on-trailing-comma = false
known-first-party = ["promrs"]
[tool.pytest.ini_options]
norecursedirs = [".git", ".venv", "benchmarks"]
python_files = ["tests.py", "test_*.py", "*_tests.py"]
[tool.pyright]
include = ["python/promrs/", "tests/"]
pythonVersion = "3.12"
pythonPlatform = "All"
stubPath = ""
typeCheckingMode = "strict"
useLibraryCodeForTypes = true
reportPrivateImportUsage = false
reportMissingTypeStubs = false
reportUnknownVariableType = false
reportUnknownMemberType = false
reportUnknownLambdaType = false
reportUnknownArgumentType = false
reportUnknownParameterType = false
reportUntypedFunctionDecorator = false
reportUnusedImport = false
reportMissingTypeArgument = false
reportImportCycles = false
reportDeprecated = false
reportUntypedBaseClass = false