-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
68 lines (58 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "cos-alerter"
version = "0.9.0"
authors = [
{ name="Dylan Stephano-Shachter", email="[email protected]" }
]
description = "A watcher for Alertmanager"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Topic :: System :: Monitoring",
"Development Status :: 3 - Alpha",
]
dependencies = [
"apprise~=1.3",
"durationpy",
"flask~=2.2",
"prometheus_flask_exporter~=0.22",
"pyyaml~=6.0",
"ruamel.yaml~=0.18.0",
"timeago~=1.0",
"waitress~=2.1",
"xdg-base-dirs~=6.0.1",
"pdpyras~=5.2.0"
]
[project.urls]
Homepage = "https://github.com/canonical/cos-alerter"
"Bug Tracker" = "https://github.com/canonical/cos-alerter/issues"
[project.scripts]
cos-alerter = "cos_alerter.daemon:main"
[tool.setuptools]
packages = ["cos_alerter"]
[tool.black]
line-length = 99
[tool.ruff]
line-length = 99
extend-exclude = ["__pycache__", "*.egg_info"]
[tool.ruff.lint]
select = ["E", "W", "F", "C", "N", "R", "D", "I001"]
# Ignore E501 because using black creates errors with this
# Ignore D107 Missing docstring in __init__
ignore = ["E501", "D107"]
# D100, D101, D102, D103: Ignore missing docstrings in tests
per-file-ignores = {"tests/*" = ["D100","D101","D102","D103"]}
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pyright]
include = ["cos_alerter"]
pythonVersion = "3.8"
pythonPlatform = "Linux"
[tool.pytest.ini_options]
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]