Skip to content

Commit bef357f

Browse files
[pre-commit.ci] pre-commit autoupdate (#666)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Raabe <[email protected]>
1 parent da7f99b commit bef357f

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
- id: python-no-log-warn
2626
- id: text-unicode-replacement-char
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.9.9
28+
rev: v0.11.5
2929
hooks:
3030
- id: ruff-format
3131
- id: ruff
@@ -59,7 +59,7 @@ repos:
5959
- id: nbstripout
6060
exclude: (docs)
6161
- repo: https://github.com/crate-ci/typos
62-
rev: v1.30.0
62+
rev: v1.31.1
6363
hooks:
6464
- id: typos
6565
exclude: (\.ipynb)

src/_pytask/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Add general logging capabilities.""" # noqa: A005
1+
"""Add general logging capabilities."""
22

33
from __future__ import annotations
44

src/_pytask/profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Contains the code to profile the execution.""" # noqa: A005
1+
"""Contains the code to profile the execution."""
22

33
from __future__ import annotations
44

@@ -148,7 +148,7 @@ def profile(**raw_config: Any) -> NoReturn:
148148
except CollectionError: # pragma: no cover
149149
session.exit_code = ExitCode.COLLECTION_FAILED
150150

151-
except Exception: # noqa: BLE001; pragma: no cover
151+
except Exception: # noqa: BLE001 pragma: no cover
152152
session.exit_code = ExitCode.FAILED
153153
console.print_exception()
154154
console.rule(style="failed")

src/_pytask/traceback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Process tracebacks.""" # noqa: A005
1+
"""Process tracebacks."""
22

33
from __future__ import annotations
44

src/_pytask/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import annotations # noqa: A005
1+
from __future__ import annotations
22

33
import functools
44
from enum import Enum

src/_pytask/warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Contains code for capturing warnings.""" # noqa: A005
1+
"""Contains code for capturing warnings."""
22

33
from __future__ import annotations
44

src/_pytask/warnings_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _resolve_warning_category(category: str) -> type[Warning]:
129129
if not issubclass(cat, Warning):
130130
msg = f"{cat} is not a Warning subclass"
131131
raise TypeError(msg)
132-
return cast(type[Warning], cat)
132+
return cast("type[Warning]", cat)
133133

134134

135135
def warning_record_to_str(warning_message: warnings.WarningMessage) -> str:

tests/test_console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_create_url_style_for_path(edtior_url_scheme, expected):
8080
+ [(outcome, CollectionOutcome, "description") for outcome in CollectionOutcome],
8181
)
8282
def test_create_summary_panel(capsys, outcome, outcome_enum, total_description):
83-
counts = {out: 0 for out in outcome_enum}
83+
counts = dict.fromkeys(outcome_enum, 0)
8484
counts[outcome] = 1
8585
panel = create_summary_panel(counts, outcome_enum, total_description)
8686
console.print(panel)

0 commit comments

Comments
 (0)