Skip to content

Commit a16186f

Browse files
Change feedback email
1 parent a91a15a commit a16186f

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ repos:
55
- id: actionlint
66

77
- repo: https://github.com/astral-sh/uv-pre-commit
8-
rev: 0.11.7
8+
rev: 0.11.6
99
hooks:
1010
- id: uv-lock
1111

12+
# ruff-pre-commit rev pins `ruff==<same semver>`; keep in sync with PyPI and uv.lock.
1213
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.15.11
14+
rev: v0.15.10
1415
hooks:
1516
- id: ruff-format
1617
- id: ruff-check

src/dbs_annotator/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Canonical upstream (releases + issue tracker; keep aligned with updater repo slug).
2626
APP_REPOSITORY_URL = "https://github.com/Brain-Modulation-Lab/App_ClinicalDBSAnnot"
2727
APP_ISSUES_URL = f"{APP_REPOSITORY_URL}/issues"
28-
UPDATE_FEEDBACK_EMAIL = "richard.koehler@wysscenter.ch"
28+
UPDATE_FEEDBACK_EMAIL = "lucia.poma@wysscenter.ch"
2929

3030
# File paths (relative to executable)
3131
ICON_FILENAME = "logoneutral.png"

tests/unit/test_updater.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import io
66
import json
77
import urllib.error
8+
from email.message import Message
89
from unittest.mock import MagicMock, patch
910

1011
import pytest
@@ -41,7 +42,7 @@ def test_fetch_empty_releases_returns_none() -> None:
4142
def test_fetch_releases_404_returns_none() -> None:
4243
signals = _CheckSignals()
4344
worker = _CheckWorker("o/r", "1.0.0", 10.0, signals)
44-
err = urllib.error.HTTPError("url", 404, "nf", {}, io.BytesIO(b""))
45+
err = urllib.error.HTTPError("url", 404, "nf", Message(), io.BytesIO(b""))
4546
with patch("urllib.request.urlopen", side_effect=err):
4647
assert worker._fetch_newest_applicable_release() is None
4748

@@ -50,10 +51,11 @@ def test_fetch_releases_404_returns_none() -> None:
5051
def test_fetch_releases_other_http_raises(code: int) -> None:
5152
signals = _CheckSignals()
5253
worker = _CheckWorker("o/r", "1.0.0", 10.0, signals)
53-
err = urllib.error.HTTPError("url", code, "e", {}, io.BytesIO(b""))
54-
with patch("urllib.request.urlopen", side_effect=err), pytest.raises(
55-
urllib.error.HTTPError
56-
) as ctx:
54+
err = urllib.error.HTTPError("url", code, "e", Message(), io.BytesIO(b""))
55+
with (
56+
patch("urllib.request.urlopen", side_effect=err),
57+
pytest.raises(urllib.error.HTTPError) as ctx,
58+
):
5759
worker._fetch_newest_applicable_release()
5860
assert ctx.value.code == code
5961

0 commit comments

Comments
 (0)