Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent 3d4342a commit 7739438
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/latex_dependency_scanner/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The name space for the package."""

from __future__ import annotations

from latex_dependency_scanner.compile import compile_pdf
Expand Down
1 change: 1 addition & 0 deletions src/latex_dependency_scanner/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
be used by users to compile their documents.
"""

from __future__ import annotations

import os
Expand Down
9 changes: 6 additions & 3 deletions src/latex_dependency_scanner/scanner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Includes the ability to scan a LaTeX document."""

from __future__ import annotations

import re
Expand Down Expand Up @@ -163,9 +164,11 @@ def yield_nodes_from_node( # noqa: C901, PLR0912

if not found_some_file:
possible_paths = (
(relative_to / path).resolve().with_suffix(suffix)
if suffix
else (relative_to / path).resolve()
(
(relative_to / path).resolve().with_suffix(suffix)
if suffix
else (relative_to / path).resolve()
)
for suffix in common_extensions
)
yield from possible_paths
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration file for pytest."""

from __future__ import annotations

import shutil
Expand Down
1 change: 1 addition & 0 deletions tests/test_regex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test regular expressions."""

from __future__ import annotations

import pytest
Expand Down

0 comments on commit 7739438

Please sign in to comment.