qutebrowser: lint with ruff (with ALL selected)

This commit is contained in:
Artur Manuel 2025-04-21 12:00:16 +01:00
commit f9c6b206ca
Signed by: amadaluzia
SSH key fingerprint: SHA256:ubvwT66gNUKSsgSzEb2UQnX8pzTq5N+r8eRVYGJJm4Q
12 changed files with 99 additions and 69 deletions

View file

@ -1,3 +1,9 @@
def darkmode_on(config, pages):
for p in pages:
config.set("colors.webpage.darkmode.enabled", True, p)
# ruff: noqa: ANN001, FBT003
"""Functions to facilitate dark mode configuration."""
def darkmode_on(config, pages: list[str]) -> None:
"""Enable dark mode on every page in `pages` using `config`."""
for page in pages:
config.set("colors.webpage.darkmode.enabled", True, page)