-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* persist state on graceful shutdown * unit test * dependencies already specified in pyproject.yaml * changelog entry * bump version * add no cover * Update cos_alerter/alerter.py Co-authored-by: PietroPasotti <[email protected]> * more appropriate variable name * bump version in changelog --------- Co-authored-by: PietroPasotti <[email protected]>
- Loading branch information
1 parent
26c2617
commit 927d69b
Showing
9 changed files
with
97 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "cos-alerter" | ||
version = "0.6.0" | ||
version = "0.7.0" | ||
authors = [ | ||
{ name="Dylan Stephano-Shachter", email="[email protected]" } | ||
] | ||
|
@@ -24,9 +24,10 @@ dependencies = [ | |
"flask~=2.2", | ||
"prometheus_flask_exporter~=0.22", | ||
"pyyaml~=6.0", | ||
"ruamel.yaml~=0.18.0", | ||
"timeago~=1.0", | ||
"waitress~=2.1", | ||
"ruamel.yaml~=0.18.0" | ||
"xdg-base-dirs~=6.0.1", | ||
] | ||
|
||
[project.urls] | ||
|
@@ -45,14 +46,16 @@ 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.pydocstyle] | ||
[tool.ruff.lint.pydocstyle] | ||
convention = "google" | ||
|
||
[tool.pyright] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: cos-alerter | ||
version: '0.6.0' | ||
version: '0.7.0' | ||
summary: A watchdog alerting on alertmanager notification failures. | ||
license: Apache-2.0 | ||
contact: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters