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 Dec 2, 2024
1 parent 6621053 commit 7124dd6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/_pytask/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def repr(self, class_name: str) -> str:
return "<{} {} _old={} _state={!r} tmpfile={!r}>".format(
class_name,
self.name,
hasattr(self, "_old") and repr(self._old) or "<UNSET>",
(hasattr(self, "_old") and repr(self._old)) or "<UNSET>",
self._state,
self.tmpfile,
)
Expand All @@ -337,7 +337,7 @@ def __repr__(self) -> str:
return "<{} {} _old={} _state={!r} tmpfile={!r}>".format(
self.__class__.__name__,
self.name,
hasattr(self, "_old") and repr(self._old) or "<UNSET>",
(hasattr(self, "_old") and repr(self._old)) or "<UNSET>",
self._state,
self.tmpfile,
)
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/mark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@


__all__ = [
"Expression",
"MARK_GEN",
"Expression",
"Mark",
"MarkDecorator",
"MarkGenerator",
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/mark/expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __str__(self) -> str:


class Scanner:
__slots__ = ("tokens", "current")
__slots__ = ("current", "tokens")

def __init__(self, input_: str) -> None:
self.tokens = self.lex(input_)
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pickle
from contextlib import suppress
from os import stat_result
from pathlib import Path # noqa: TCH003
from pathlib import Path # noqa: TC003
from typing import TYPE_CHECKING
from typing import Any
from typing import Callable
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/tree_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from optree import tree_structure as _optree_tree_structure

__all__ = [
"PyTree",
"TREE_UTIL_LIB_DIRECTORY",
"PyTree",
"tree_flatten_with_path",
"tree_leaves",
"tree_map",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_collect_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

from _pytask.collect_utils import _find_args_with_product_annotation
from pytask import Product # noqa: TCH001
from pytask import Product


@pytest.mark.unit
Expand Down

0 comments on commit 7124dd6

Please sign in to comment.