Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v6
Expand Down
2 changes: 1 addition & 1 deletion .sonarcloud.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sonar.sources=src
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

sonar.python.version=3.10, 3.11, 3.12, 3.13
sonar.python.version=3.10, 3.11, 3.12, 3.13, 3.14
sonar.tests=tests

sonar.exclusions=src/argus/htmx/static/styles.css
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: System :: Monitoring",
]
dependencies = [
Expand Down
5 changes: 4 additions & 1 deletion src/argus/dev/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ def __init__(self, url: str, token: str, timeout: int, worker_count: int):
self.token = token
self.timeout = timeout
self.worker_count = worker_count
self._loop = asyncio.get_event_loop()
try:
self._loop = asyncio.get_running_loop()
except RuntimeError:
self._loop = asyncio.new_event_loop()

def _get_incident_data(self) -> dict[str, Any]:
return {
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
envlist =
clean
py{310,311}-django{52}
py{312,313}-django{52,60}
py{312,313,314}-django{52,60}
coverage-html
skipsdist = True
skip_missing_interpreters = True
Expand All @@ -14,6 +14,7 @@ python =
3.11: py311
3.12: py312
3.13: py313
3.14: py314

[testenv:clean]
deps =
Expand Down
Loading