-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
85 lines (67 loc) · 1.64 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
[tool.poetry]
name = "flask-healthz"
version = "1.0.1"
description = "A simple module to allow you to easily add health endpoints to your Flask application"
license = "BSD-3-Clause"
authors = [
"Fedora Infrastructure <[email protected]>"
]
readme = 'README.md'
repository = "https://github.com/fedora-infra/flask-healthz"
homepage = "https://github.com/fedora-infra/flask-healthz"
include = [
{ path = "tox.ini", format = "sdist" },
{ path = "tests", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.8.0"
flask = "^2.0.0 || ^3.0.0"
[tool.poetry.group.dev.dependencies]
black = "*"
pytest = "*"
coverage = {extras = ["toml"], version = "*"}
pytest-cov = "*"
pre-commit = "*"
ruff = "*"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "S", "B", "RUF"]
ignore = ["RUF012"]
[tool.ruff.lint.isort]
lines-after-imports = 2
order-by-type = false
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "E501"]
"flask_healthz/__init__.py" = ["F401"]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
source = ["flask_healthz"]
[tool.coverage.paths]
source = [
"flask_healthz",
".tox/*/site-packages/flask_healthz",
]
[tool.coverage.report]
fail_under = 100
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
# Don't complain if tests don't hit defensive assertion code
"raise AssertionError",
"raise NotImplementedError",
"\\.\\.\\.",
]
omit = [
"tests/*",
"flask_healthz/__init__.py",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"