From 8f186790942afdafef3da840ba77355136f69d50 Mon Sep 17 00:00:00 2001 From: Bizordec Date: Thu, 7 Sep 2023 21:21:26 +0300 Subject: [PATCH] Add fixes for nox checks --- docs/customization.rst | 2 +- tests/extra_scope_test.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/customization.rst b/docs/customization.rst index 6b3beae17..ad42e8b78 100644 --- a/docs/customization.rst +++ b/docs/customization.rst @@ -668,7 +668,7 @@ Configuration Options Scope of site preferences (i.e. cookie consent, content tabs, color palette). If you have multi-site project, you can set this to "/" - to share preferences between all sub-sites. See the :ref:`version_dropdown` section + to share preferences between all sub-sites. See the :ref:`version_dropdown` section on how to setup a multi-site project. .. confval:: sphinx_immaterial_external_resource_cache_dir diff --git a/tests/extra_scope_test.py b/tests/extra_scope_test.py index 799d2aacb..6e09ca8db 100644 --- a/tests/extra_scope_test.py +++ b/tests/extra_scope_test.py @@ -1,10 +1,12 @@ from __future__ import annotations -from typing import TYPE_CHECKING -from bs4 import BeautifulSoup import re import textwrap +from pathlib import Path +from typing import TYPE_CHECKING + import pytest +from bs4 import BeautifulSoup if TYPE_CHECKING: from sphinx.testing.util import SphinxTestApp @@ -47,7 +49,7 @@ def test_extra_scope( ) app.build() - with open(app.outdir / "index.html", mode="r") as file: + with open(Path(app.outdir) / "index.html", mode="r") as file: soup = BeautifulSoup(file.read(), "html.parser") head = soup.head