diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 98c64a2c..9eeb08ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,7 +45,7 @@ repos: hooks: - id: sort-all - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.11 + rev: v0.1.13 hooks: - id: ruff-format - id: ruff diff --git a/src/_pytask/capture.py b/src/_pytask/capture.py index 7d448e70..520cd7d5 100644 --- a/src/_pytask/capture.py +++ b/src/_pytask/capture.py @@ -248,7 +248,7 @@ def __init__( # type: ignore self.tmpfile = tmpfile self._state = "initialized" - def repr(self, class_name: str) -> str: # noqa: A003 + def repr(self, class_name: str) -> str: return "<{} {} _old={} _state={!r} tmpfile={!r}>".format( class_name, self.name, diff --git a/src/_pytask/mark/__init__.pyi b/src/_pytask/mark/__init__.pyi index 5518a106..f9d55332 100644 --- a/src/_pytask/mark/__init__.pyi +++ b/src/_pytask/mark/__init__.pyi @@ -16,21 +16,21 @@ def select_by_mark(session: Session, dag: nx.DiGraph) -> set[str]: ... class MarkGenerator: @deprecated( - "'@pytask.mark.produces' is deprecated starting pytask v0.4.0 and will be removed in v0.5.0. To upgrade your project to the new syntax, read the tutorial on product and dependencies: https://tinyurl.com/pytask-deps-prods.", # noqa: E501, PYI053 + "'@pytask.mark.produces' is deprecated starting pytask v0.4.0 and will be removed in v0.5.0. To upgrade your project to the new syntax, read the tutorial on product and dependencies: https://tinyurl.com/pytask-deps-prods.", # noqa: E501 category=FutureWarning, stacklevel=1, ) @staticmethod def produces(objects: PyTree[str | Path]) -> None: ... @deprecated( - "'@pytask.mark.depends_on' is deprecated starting pytask v0.4.0 and will be removed in v0.5.0. To upgrade your project to the new syntax, read the tutorial on product and dependencies: https://tinyurl.com/pytask-deps-prods.", # noqa: E501, PYI053 + "'@pytask.mark.depends_on' is deprecated starting pytask v0.4.0 and will be removed in v0.5.0. To upgrade your project to the new syntax, read the tutorial on product and dependencies: https://tinyurl.com/pytask-deps-prods.", # noqa: E501 category=FutureWarning, stacklevel=1, ) @staticmethod def depends_on(objects: PyTree[str | Path]) -> None: ... @deprecated( - "'@pytask.mark.task' is deprecated starting pytask v0.4.0 and will be removed in v0.5.0. Use '@task' from 'from pytask import task' instead.", # noqa: E501, PYI053 + "'@pytask.mark.task' is deprecated starting pytask v0.4.0 and will be removed in v0.5.0. Use '@task' from 'from pytask import task' instead.", # noqa: E501 category=FutureWarning, stacklevel=1, ) diff --git a/src/_pytask/nodes.py b/src/_pytask/nodes.py index c62bfa5e..26fd9e34 100644 --- a/src/_pytask/nodes.py +++ b/src/_pytask/nodes.py @@ -236,7 +236,7 @@ class PythonNode(PNode): name: str = "" value: Any | NoDefault = no_default - hash: bool | Callable[[Any], bool] = False # noqa: A003 + hash: bool | Callable[[Any], bool] = False node_info: NodeInfo | None = None @property