Skip to content

Commit 9f55302

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ae0d05b commit 9f55302

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

sphinx_external_toc/_compat.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Compatibility for using dataclasses instead of attrs."""
2+
23
from __future__ import annotations
34

45
import dataclasses as dc

sphinx_external_toc/api.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Defines the `SiteMap` object, for storing the parsed ToC."""
2+
23
from collections.abc import MutableMapping
34
from dataclasses import asdict, dataclass
45
from typing import Any, Dict, Iterator, List, Optional, Set, Union

sphinx_external_toc/events.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Sphinx event functions and directives."""
2+
23
import glob
34
from pathlib import Path, PurePosixPath
45
from typing import Any, List, Optional, Set

sphinx_external_toc/parsing.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Parse the ToC to a `SiteMap` object."""
2+
23
from collections.abc import Mapping
34
from dataclasses import dataclass, fields
45
from pathlib import Path

tests/test_parsing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_create_toc_dict(path: Path, data_regression):
3636
"items_in_glob.yml": "entry contains incompatible keys 'glob' and 'entries' @ '/entries/0'",
3737
"no_root.yml": "'root' key not found @ '/'",
3838
"unknown_keys_nested.yml": (
39-
"Unknown keys found: {'unknown'}, allow.* " "@ '/subtrees/0/entries/1/'"
39+
"Unknown keys found: {'unknown'}, allow.* @ '/subtrees/0/entries/1/'"
4040
),
4141
"empty_subtrees.yml": "'subtrees' not a non-empty list @ '/'",
4242
"items_in_url.yml": "entry contains incompatible keys 'url' and 'entries' @ '/entries/0'",

0 commit comments

Comments
 (0)