From ccd94c90d33b7aee85117078576684fab5055ce5 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 19 Feb 2024 21:35:56 +0000 Subject: ruff lint fix: Manual non-breaking changes --- docs/conf.py | 4 ++-- docs/utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 5205b013..94246fe4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,14 +18,14 @@ from sphinx.application import Sphinx logger = sphinx.util.logging.getLogger(__name__) # Handle the path not being set correctly in actions. -sys.path.insert(0, os.path.abspath("..")) +sys.path.insert(0, Path("..").resolve()) from docs import utils # noqa: E402 # -- Project information ----------------------------------------------------- project = "Pydis Core" -copyright = "2021, Python Discord" +copyright = "2021, Python Discord" # noqa: A001 author = "Python Discord" REPO_LINK = "https://github.com/python-discord/bot-core" diff --git a/docs/utils.py b/docs/utils.py index 796eca3d..de40cf6b 100644 --- a/docs/utils.py +++ b/docs/utils.py @@ -204,7 +204,7 @@ def build_api_doc() -> None: return result = subprocess.run(cmd, cwd=build_root, stdout=subprocess.PIPE, check=True, env=os.environ) # noqa: S603 - logger.debug("api-doc Output:\n" + result.stdout.decode(encoding="utf-8") + "\n") + logger.debug(f"api-doc Output:\n{result.stdout.decode(encoding='utf-8')}\n") cleanup() -- cgit v1.2.3