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,13 +1,18 @@
from colours.themes import load_colours, Palettes
# ruff: noqa: INP001
"""The configuration module. Used to configure qutebrowser."""
from colours.darkmode import darkmode_on
from colours.themes import ROSE_PINE, load_colours
def main():
def main() -> None:
"""Pretend this is a docstring."""
# leave this alone!
config.load_autoconfig()
# rose-pine
load_colours(c, Palettes.rose_pine)
load_colours(c, ROSE_PINE)
darkmode_on(config, ["about:blank"])
@ -25,7 +30,7 @@ def main():
c.tabs.indicator.width = 0
c.tabs.title.format = "{audio}{relative_index} | {current_title}"
c.fonts.default_size = "12pt"
c.fonts.default_size = "9pt"
c.fonts.default_family = "sans-serif"
c.url.start_pages = "about:blank"