Skip to content

Commit 01afca2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 21a8f84 commit 01afca2

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/_pytask/logging.py

+1-1
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

+1-1
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

src/_pytask/traceback.py

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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)