[gemma4] make pytest and linters happy

This commit is contained in:
2026-06-19 11:29:36 +02:00
parent f56a94e35e
commit 6459d63f2b
5 changed files with 21 additions and 23 deletions
+2 -5
View File
@@ -1,9 +1,8 @@
from dataclasses import dataclass
from enum import Enum, auto
from enum import Enum
from lsprotocol.types import Location, Position, Range
from lsprotocol.types import Position, Range
from skillls.types import URI
class SyntaxError(Exception):
@@ -28,7 +27,6 @@ def _check_for_matching_parens(content: str) -> list[Exception]:
line = 0
col = 0
last_open: Position = Position(0, 0)
last_close: Position = Position(0, 0)
for char in content:
match char:
case "(":
@@ -45,7 +43,6 @@ def _check_for_matching_parens(content: str) -> list[Exception]:
)
)
opened = 0
last_close = Position(line, col)
case "\n":
line += 1
col = -1
+1 -1
View File
@@ -9,7 +9,7 @@ from re import MULTILINE, compile as recompile, finditer
from pygls.workspace import TextDocument
from skillls.checker import check_content_for_errors
from skillls.types import URI, Node, NodeKind
from skillls.types import Node, NodeKind
logger = getLogger(__name__)
+1 -1
View File
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from enum import Enum, auto
from enum import Enum
from lsprotocol.types import DocumentSymbol, Range, SymbolKind
URI = str