Skip to content

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

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 21, 2023
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
args: [--branch, main]
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0 # Use the ref you want to point at
rev: v1.10.0 # Use the ref you want to point at
hooks:
- id: python-check-blanket-noqa
- id: python-check-mock-methods
Expand All @@ -44,16 +44,16 @@ repos:
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
rev: 1.13.0
hooks:
- id: blacken-docs
additional_dependencies: [black]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.215
rev: v0.0.223
hooks:
- id: ruff
- repo: https://github.com/dosisod/refurb
rev: v1.9.1
rev: v1.10.0
hooks:
- id: refurb
args: [--ignore, FURB126]
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ extend-ignore = [
"EM", # flake8-errmsg
"ANN401", # flake8-annotate typing.Any
"PD", # pandas-vet
"COM812", # trailing comma missing, but black takes care of that
]


[tool.ruff.per-file-ignores]
"tests/*" = ["D", "ANN"]
"tests/*" = ["D", "ANN", "PLR2004"]


[tool.ruff.pydocstyle]
Expand Down
3 changes: 2 additions & 1 deletion src/pytask_latex/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def pytask_collect_task(
)

if not (
isinstance(script_node, FilePathNode) and script_node.value.suffix == ".tex"
isinstance(script_node, FilePathNode)
and script_node.value.suffix == ".tex" # noqa: PLR2004
):
raise ValueError(
"The 'script' keyword of the @pytask.mark.latex decorator must point "
Expand Down
2 changes: 1 addition & 1 deletion src/pytask_latex/parametrize.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
@hookimpl
def pytask_parametrize_kwarg_to_marker(obj: Any, kwargs: dict[str, Any]) -> None:
"""Register kwargs as latex marker."""
if callable(obj) and "latex" in kwargs:
if callable(obj) and "latex" in kwargs: # noqa: PLR2004
pytask.mark.latex(**kwargs.pop("latex"))(obj)