From 29f26775cc4970dbb05fa154ada882fdd5088d4d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:55:28 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.11...v0.1.13) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 288c3513048d381cf7e2f6e82939916939fa4165 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:57:44 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/_pytask/capture.py | 2 +- src/_pytask/mark/__init__.pyi | 6 +++--- src/_pytask/nodes.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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