Skip to content

chore(ci): configure ruff #2084

chore(ci): configure ruff

chore(ci): configure ruff #2084

Triggered via pull request August 4, 2024 18:46
Status Failure
Total duration 53s
Artifacts

lint-and-test.yaml

on: pull_request
pre-commit  /  pre-commit
14s
pre-commit / pre-commit
Matrix: test-python-poetry / pytest
Fit to window
Zoom out
Zoom in

Annotations

8 errors
pre-commit / pre-commit
Process completed with exit code 1.
test-python-poetry / Test python 3.11: nowplaying/input/observer.py#L341
ruff pytest_ruff.RuffError: nowplaying/input/observer.py:258:33: UP031 Use format specifiers instead of percent format | 256 | # TODO(hairmare): replace with non generic exception and test 257 | # https://github.com/radiorabe/nowplaying/issues/179 258 | raise Exception("No <%s> tag found" % name) # noqa: TRY002 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ UP031 259 | if elements[0].hasChildNodes(): 260 | element_data = elements[0].firstChild.data.strip() # type: ignore[attr-defined,union-attr] | = help: Replace with format specifiers
test-python-poetry / Test python 3.11: nowplaying/track/observers/ticker.py#L341
ruff pytest_ruff.RuffError: nowplaying/track/observers/ticker.py:83:17: UP031 Use format specifiers instead of percent format | 81 | MAIN_NAMESPACE = "http://rabe.ch/schema/ticker.xsd" # noqa: N806 82 | XLINK_NAMESPACE = "http://www.w3.org/1999/xlink" # noqa: N806 83 | XLINK = "{%s}" % XLINK_NAMESPACE # noqa: N806 | ^^^^^^^^^^^^^^^^^^^^^^^^ UP031 84 | 85 | E = lxml.builder.ElementMaker( # noqa: N806 | = help: Replace with format specifiers
test-python-poetry / Test python 3.11
Process completed with exit code 1.
test-python-poetry / Test python 3.x
The job was canceled because "_3_11_false" failed.
test-python-poetry / Test python 3.x: nowplaying/input/observer.py#L341
ruff pytest_ruff.RuffError: nowplaying/input/observer.py:258:33: UP031 Use format specifiers instead of percent format | 256 | # TODO(hairmare): replace with non generic exception and test 257 | # https://github.com/radiorabe/nowplaying/issues/179 258 | raise Exception("No <%s> tag found" % name) # noqa: TRY002 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ UP031 259 | if elements[0].hasChildNodes(): 260 | element_data = elements[0].firstChild.data.strip() # type: ignore[attr-defined,union-attr] | = help: Replace with format specifiers
test-python-poetry / Test python 3.x: nowplaying/track/observers/ticker.py#L341
ruff pytest_ruff.RuffError: nowplaying/track/observers/ticker.py:83:17: UP031 Use format specifiers instead of percent format | 81 | MAIN_NAMESPACE = "http://rabe.ch/schema/ticker.xsd" # noqa: N806 82 | XLINK_NAMESPACE = "http://www.w3.org/1999/xlink" # noqa: N806 83 | XLINK = "{%s}" % XLINK_NAMESPACE # noqa: N806 | ^^^^^^^^^^^^^^^^^^^^^^^^ UP031 84 | 85 | E = lxml.builder.ElementMaker( # noqa: N806 | = help: Replace with format specifiers
test-python-poetry / Test python 3.x
The operation was canceled.