-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (77 loc) · 1.74 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (77 loc) · 1.74 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
[project]
name = "pingdat"
version = "1.6.5"
description = "A simple ping exporter for Prometheus metrics."
authors = [{ name = "jheddings", email = "jheddings@gmail.com" }]
requires-python = ">=3.12, <4"
readme = "README.md"
license = "MIT"
dependencies = [
"requests>=2.34.2,<3",
"click>=8.5.0,<9",
"prometheus-client>=0.26.0,<0.27",
"pydantic>=2.13.5,<3",
"pyyaml>=6.0.3,<7",
"ping3>=5.1.5,<6",
]
[project.scripts]
pingdat = "pingdat.__main__:main"
[dependency-groups]
dev = [
"pre-commit>=4.6.2,<5",
"GitPython>=3.1.61,<4",
"pytest>=9.1.1,<10",
"coverage>=7.16.0,<8",
"pyright>=1.1.411",
"ruff>=0.16.6,<0.17",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/pingdat"]
[tool.ruff]
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = [
"I", # isort
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C", # flake8-comprehensions
"B", # flake8-bugbear
"G", # flake8-logging-format
"RET", # flake8-return
"N", # pep8-naming
"ERA", # eradicate
"UP", # pyupgrade
]
ignore = [
"E501", # line-too-long
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pyright]
pythonVersion = "3.12"
include = ["src"]
typeCheckingMode = "basic"
reportMissingImports = true
reportMissingTypeStubs = false
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
]
markers = [
"network: tests that require an active network",
]