diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f26eedd..a7151b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,11 +23,11 @@ repos: - id: check-toml - id: check-json - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.5 + rev: v1.5.6 hooks: - id: remove-crlf - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell additional_dependencies: @@ -39,7 +39,7 @@ repos: args: - --msg-filename - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 3.4.1 + rev: 3.6.1 hooks: - id: editorconfig-checker - repo: https://github.com/jumanjihouse/pre-commit-hooks @@ -47,11 +47,11 @@ repos: hooks: - id: check-mailmap - repo: https://github.com/rhysd/actionlint - rev: v1.7.8 + rev: v1.7.12 hooks: - id: actionlint - repo: https://github.com/adrienverge/yamllint - rev: v1.37.1 + rev: v1.38.0 hooks: - id: yamllint - repo: https://github.com/executablebooks/mdformat @@ -69,13 +69,13 @@ repos: - mdformat-config - mdformat-web - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.18.1 + rev: v0.22.1 hooks: - id: markdownlint-cli2 additional_dependencies: - markdown-it-texmath - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.3 + rev: v0.15.14 hooks: - id: ruff-check - id: ruff-format diff --git a/src/mutt_language_server/misc/__init__.py b/src/mutt_language_server/misc/__init__.py index fd38716..9ecae1d 100644 --- a/src/mutt_language_server/misc/__init__.py +++ b/src/mutt_language_server/misc/__init__.py @@ -158,7 +158,8 @@ def get_schema(filetype: FILETYPE = "neomuttrc") -> dict[str, Any]: enumeration = [ name.strip("\\") for name in ( - description.split("May be ")[-1] + description + .split("May be ")[-1] .split(".")[0] .split('"')[1::2] )