-
Notifications
You must be signed in to change notification settings - Fork 31
/
pyproject.toml
95 lines (85 loc) · 1.92 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
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "starlette-prometheus"
version = "0.10.0"
description = "Prometheus integration for Starlette"
authors = ["José Antonio Perdiguero López <perdy@perdy.io>"]
license = "GPL-3.0+"
readme = "README.md"
repository = "https://github.com/PeRDy/starlette-prometheus"
keywords = ["starlette", "prometheus", "metrics"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks"
]
include = []
exclude = []
[tool.poetry.dependencies]
python = "^3.8"
starlette = ">=0.12.2"
prometheus_client = ">=0.12"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
httpx = "^0.26.0"
isort = "^5.12"
ruff = "^0.0.292"
black = "^23.9"
pytest = "^7.0"
pytest-xdist = "^3.0"
pytest-cov = "^3.0"
clinner = "^1.12"
ipython = "^8.0"
requests = "^2.27"
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
atomic = true
multi_line_output = 3
include_trailing_comma = true
line_length = 120
skip_glob = [
"*/.venv/**",
"*/docs/**",
"*/build/**",
"*/dist/**",
]
[tool.ruff]
line-length = 120
# Enable Pyflakes and pycodestyle rules.
select = ["E", "F"]
ignore = ["E721"]
exclude = [
".git",
".pytest_cache",
".mypy_cache",
".ruff_cache",
".venv",
"buck-out",
"build",
"dist",
"node_modules",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402"]
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10