Skip to content

Commit 003dafd

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

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

src/latex_dependency_scanner/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The name space for the package."""
2+
23
from __future__ import annotations
34

45
from latex_dependency_scanner.compile import compile_pdf

src/latex_dependency_scanner/compile.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
be used by users to compile their documents.
55
66
"""
7+
78
from __future__ import annotations
89

910
import os

src/latex_dependency_scanner/scanner.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Includes the ability to scan a LaTeX document."""
2+
23
from __future__ import annotations
34

45
import re
@@ -163,9 +164,11 @@ def yield_nodes_from_node( # noqa: C901, PLR0912
163164

164165
if not found_some_file:
165166
possible_paths = (
166-
(relative_to / path).resolve().with_suffix(suffix)
167-
if suffix
168-
else (relative_to / path).resolve()
167+
(
168+
(relative_to / path).resolve().with_suffix(suffix)
169+
if suffix
170+
else (relative_to / path).resolve()
171+
)
169172
for suffix in common_extensions
170173
)
171174
yield from possible_paths

tests/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Configuration file for pytest."""
2+
23
from __future__ import annotations
34

45
import shutil

tests/test_regex.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test regular expressions."""
2+
23
from __future__ import annotations
34

45
import pytest

0 commit comments

Comments
 (0)