chore(ci): configure ruff #2084
Annotations
3 errors
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
|
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
|
|
The logs for this run have expired and are no longer available.
Loading