Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.15.9
hooks:
- id: ruff
name: ruff (lsp-devtools)
Expand All @@ -33,7 +33,7 @@ repos:
files: 'lib/pytest-lsp/.*\.py'

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.19.1'
rev: 'v1.20.0'
hooks:
- id: mypy
name: mypy (pytest-lsp)
Expand Down
2 changes: 1 addition & 1 deletion lib/lsp-devtools/lsp_devtools/record/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def format_range(range_: dict[str, Any]) -> str:
def get_formatter(fmt: str) -> Callable[[Any], str]:
"""Return the formatter with the given name."""

if (formatter := FORMATTERS.get(fmt.lower(), None)) is not None:
if (formatter := FORMATTERS.get(fmt.lower())) is not None:
return formatter

# Is the formatter is an lsprotocol enum?
Expand Down