Skip to content

Commit bca6ba6

Browse files
committed
fix last ruff issues
1 parent 7da9616 commit bca6ba6

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

structured_tutorials/sphinx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pathlib import Path
55
from typing import TYPE_CHECKING, Any
66

7-
from docutils.nodes import Body, Node, paragraph
7+
from docutils.nodes import Node, paragraph
88
from docutils.parsers.rst.states import RSTState
99
from docutils.statemachine import StringList
1010
from jinja2 import Environment

structured_tutorials/tutorial.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@contextmanager
1616
def chdir(path: Path) -> Iterator[None]:
17+
"""Context manager to switch the directory."""
1718
old_cwd = os.getcwd()
1819
try:
1920
os.chdir(path)

tests/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from pathlib import Path
44

5-
import pytest
6-
75
TEST_DIR = Path(__file__).parent.absolute()
86
ROOT_DIR = TEST_DIR.parent
97
DATA_DIR = TEST_DIR / "data"

0 commit comments

Comments
 (0)