Skip to content

[pre-commit.ci] pre-commit autoupdate #549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/_pytask/mark/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down