From 3b3dca7bc1c51ae681d57be409c6edc32e0ade9d Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:04:15 -0500 Subject: [PATCH] Enable the UP025 Ruff rule to flag unnecessary Unicode prefixes (#2820) --- docs/conf.py | 4 ++-- pyproject.toml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 7cfb3203dc..8ad9caf9b1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -110,7 +110,7 @@ def setup(app) -> None: # type: ignore[no-untyped-def] # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [("index", "archinstall", u"archinstall Documentation", [u"Anton Hvornum"], 1)] +man_pages = [("index", "archinstall", "archinstall Documentation", ["Anton Hvornum"], 1)] # If true, show URL addresses after external links. # man_show_urls = False @@ -122,5 +122,5 @@ def setup(app) -> None: # type: ignore[no-untyped-def] # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ("index", "archinstall", u"archinstall Documentation", u"Anton Hvornum", "archinstall", "Simple and minimal HTTP server."), + ("index", "archinstall", "archinstall Documentation", "Anton Hvornum", "archinstall", "Simple and minimal HTTP server."), ] diff --git a/pyproject.toml b/pyproject.toml index 3133b0eea4..65a7971c88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -192,6 +192,7 @@ select = [ "RSE", # flake8-raise "SLOT", # flake8-slot "T10", # flake8-debugger + "UP025", # pyupgrade - unicode-kind-prefix "W", # pycodestyle warnings "YTT", # flake8-2020 ]