diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e013ac3785..d89b392f86 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: doc/data/messages/m/missing-final-newline/bad/crlf.py )$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.4" + rev: "v0.1.5" hooks: - id: ruff args: ["--fix"] @@ -39,7 +39,7 @@ repos: - id: isort exclude: doc/data/messages/ - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 23.11.0 hooks: - id: black args: [--safe, --quiet] @@ -112,7 +112,7 @@ repos: files: ^(doc/(.*/)*.*\.rst) additional_dependencies: [Sphinx==5.0.1] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.6.1 + rev: v1.7.0 hooks: - id: mypy name: mypy @@ -131,7 +131,7 @@ repos: ] exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/ - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v3.1.0 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88] diff --git a/pylint/checkers/base_checker.py b/pylint/checkers/base_checker.py index ab76357c49..d06572ab4b 100644 --- a/pylint/checkers/base_checker.py +++ b/pylint/checkers/base_checker.py @@ -188,10 +188,10 @@ def create_message_definition_from_tuple( default_scope = WarningScope.NODE options: ExtraMessageOptions = {} if len(msg_tuple) == 4: - (msg, symbol, descr, msg_options) = msg_tuple # type: ignore[misc] + (msg, symbol, descr, msg_options) = msg_tuple options = ExtraMessageOptions(**msg_options) elif len(msg_tuple) == 3: - (msg, symbol, descr) = msg_tuple # type: ignore[misc] + (msg, symbol, descr) = msg_tuple else: error_msg = """Messages should have a msgid, a symbol and a description. Something like this :