-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (66 loc) · 1.47 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
[tool.poetry]
name = "cluster-purger"
version = "0.1.0"
description = "Purge multiple instances of Varnish inside a cluster"
authors = ["kitconcept GmbH <info@kitconcept.com>"]
readme = "README.md"
packages = [{include = "cluster_purger"}]
[tool.poetry.dependencies]
python = "^3.11"
dnspython = "^2.3.0"
fastapi = "^0.95.0"
uvicorn = {extras = ["standard"], version = "^0.20.0"}
dynaconf = "^3.1.12"
httpx = "^0.23.3"
opentelemetry-distro = "^0.38b0"
opentelemetry-exporter-otlp = "^1.17.0"
opentelemetry-instrumentation-fastapi = "^0.38b0"
[tool.poetry.group.test.dependencies]
pytest = "^7.2.2"
pytest-httpx = "^0.21.3"
pytest-cov = "^4.0.0"
black = "^23.1.0"
isort = "^5.12.0"
flakeheaven = "^3.2.1"
[tool.pytest.ini_options]
addopts = "--cov-report term-missing --cov=cluster_purger"
testpaths = [
"tests",
]
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.isort]
profile = "black"
force_alphabetical_sort = true
force_single_line = true
lines_after_imports = 2
line_length = 120
[tool.flakeheaven]
format="grouped"
max_line_length=88
show_source=true
max-complexity=25
[tool.flakeheaven.plugins]
pycodestyle = ["+*"]
pyflakes = ["+*"]
"flake8-*" = ["+*"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"