diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a7a35934..ad2c5b8c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/flake8_async/visitors/visitor103_104.py b/flake8_async/visitors/visitor103_104.py index 0ee6e423..951b0888 100644 --- a/flake8_async/visitors/visitor103_104.py +++ b/flake8_async/visitors/visitor103_104.py @@ -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) )