qutebrowser: lint with ruff (with ALL selected)
This commit is contained in:
parent
0e93cee685
commit
f9c6b206ca
12 changed files with 99 additions and 69 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue