diff --git a/btest b/btest index 08dfbf5..b14ada6 100755 --- a/btest +++ b/btest @@ -29,7 +29,6 @@ import threading import time import uuid import xml.dom.minidom - from datetime import datetime # We require the external multiprocess library on Windows due to pickling issues diff --git a/pyproject.toml b/pyproject.toml index 00cfe37..8dbf689 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,4 +72,4 @@ per-file-ignores = """ """ [tool.ruff.lint] -select = ["C4", "COM", "F", "UP"] +select = ["C4", "COM", "F", "I", "UP"] diff --git a/sphinx/btest-sphinx.py b/sphinx/btest-sphinx.py index d8a26ef..87a4952 100644 --- a/sphinx/btest-sphinx.py +++ b/sphinx/btest-sphinx.py @@ -1,15 +1,16 @@ import os import os.path -import subprocess import re +import subprocess from docutils import nodes, utils -from docutils.parsers.rst import directives, Directive, Parser +from docutils.parsers.rst import Directive, Parser, directives from docutils.transforms import Transform -from sphinx.util.console import darkgreen, red -from sphinx.errors import SphinxError + from sphinx.directives.code import LiteralInclude +from sphinx.errors import SphinxError from sphinx.util import logging +from sphinx.util.console import darkgreen, red logger = logging.getLogger(__name__)