Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#328)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
pre-commit-ci[bot] and Zac-HD authored Nov 26, 2024
1 parent ea58c7a commit 5f008c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.8.0
hooks:
- id: ruff
args: [--fix]
Expand Down
4 changes: 2 additions & 2 deletions flake8_async/visitors/visitor103_104.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"ASYNC103": _async103_common_msg,
"ASYNC104": "Cancelled (and therefore BaseException) must be re-raised.",
}
for poss_library in _suggestion_dict:
for poss_library, _lib_suggest in _suggestion_dict.items():
_error_codes[f"ASYNC103_{'_'.join(poss_library)}"] = (
_async103_common_msg + _suggestion.format(_suggestion_dict[poss_library])
_async103_common_msg + _suggestion.format(_lib_suggest)
)


Expand Down

0 comments on commit 5f008c3

Please sign in to comment.