Skip to content

Commit 5f008c3

Browse files
[pre-commit.ci] pre-commit autoupdate (#328)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](astral-sh/ruff-pre-commit@v0.7.4...v0.8.0) * lint fix --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Zac Hatfield-Dodds <[email protected]>
1 parent ea58c7a commit 5f008c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ci:
88

99
repos:
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.7.4
11+
rev: v0.8.0
1212
hooks:
1313
- id: ruff
1414
args: [--fix]

flake8_async/visitors/visitor103_104.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"ASYNC103": _async103_common_msg,
5252
"ASYNC104": "Cancelled (and therefore BaseException) must be re-raised.",
5353
}
54-
for poss_library in _suggestion_dict:
54+
for poss_library, _lib_suggest in _suggestion_dict.items():
5555
_error_codes[f"ASYNC103_{'_'.join(poss_library)}"] = (
56-
_async103_common_msg + _suggestion.format(_suggestion_dict[poss_library])
56+
_async103_common_msg + _suggestion.format(_lib_suggest)
5757
)
5858

5959

0 commit comments

Comments
 (0)