chore(ci): configure ruff #2084
lint-and-test.yaml
on: pull_request
pre-commit
/
pre-commit
14s
Matrix: test-python-poetry / pytest
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.
|