diff --git a/src/sphinx_tags/__init__.py b/src/sphinx_tags/__init__.py index 25a6099..afb9a91 100644 --- a/src/sphinx_tags/__init__.py +++ b/src/sphinx_tags/__init__.py @@ -1,6 +1,7 @@ """Sphinx extension to create tags for documentation pages. """ + import os import re from fnmatch import fnmatch diff --git a/test/conftest.py b/test/conftest.py index 0c7023a..0b41e42 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -8,6 +8,7 @@ * This subdirectory must contain a conf.py and source files * The `outputs` dir contains expected output files """ + import shutil from os import symlink from pathlib import Path diff --git a/test/test_badges.py b/test/test_badges.py index 7c4a23a..31906f9 100644 --- a/test/test_badges.py +++ b/test/test_badges.py @@ -1,4 +1,5 @@ """General tests for tag index and tag pages""" + from io import StringIO from pathlib import Path from test.conftest import OUTPUT_ROOT_DIR diff --git a/test/test_general_tags.py b/test/test_general_tags.py index 3fc35fc..a50081f 100644 --- a/test/test_general_tags.py +++ b/test/test_general_tags.py @@ -1,4 +1,5 @@ """General tests for tag index and tag pages""" + from io import StringIO from pathlib import Path from unittest.mock import MagicMock