Skip to content
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

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
- id: python-no-log-warn
- id: text-unicode-replacement-char
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.9
rev: v0.11.0
hooks:
- id: ruff-format
- id: ruff
Expand Down Expand Up @@ -59,7 +59,7 @@ repos:
- id: nbstripout
exclude: (docs)
- repo: https://github.com/crate-ci/typos
rev: v1.30.0
rev: v1
hooks:
- id: typos
exclude: (\.ipynb)
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/logging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Add general logging capabilities.""" # noqa: A005
"""Add general logging capabilities."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/profile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Contains the code to profile the execution.""" # noqa: A005
"""Contains the code to profile the execution."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/traceback.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Process tracebacks.""" # noqa: A005
"""Process tracebacks."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import annotations # noqa: A005
from __future__ import annotations

import functools
from enum import Enum
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/warnings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Contains code for capturing warnings.""" # noqa: A005
"""Contains code for capturing warnings."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/warnings_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _resolve_warning_category(category: str) -> type[Warning]:
if not issubclass(cat, Warning):
msg = f"{cat} is not a Warning subclass"
raise TypeError(msg)
return cast(type[Warning], cat)
return cast("type[Warning]", cat)


def warning_record_to_str(warning_message: warnings.WarningMessage) -> str:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_create_url_style_for_path(edtior_url_scheme, expected):
+ [(outcome, CollectionOutcome, "description") for outcome in CollectionOutcome],
)
def test_create_summary_panel(capsys, outcome, outcome_enum, total_description):
counts = {out: 0 for out in outcome_enum}
counts = dict.fromkeys(outcome_enum, 0)
counts[outcome] = 1
panel = create_summary_panel(counts, outcome_enum, total_description)
console.print(panel)
Expand Down