diff --git a/cratedb_sqlparse_py/cratedb_sqlparse/parser.py b/cratedb_sqlparse_py/cratedb_sqlparse/parser.py index 452abd3..6134a1a 100644 --- a/cratedb_sqlparse_py/cratedb_sqlparse/parser.py +++ b/cratedb_sqlparse_py/cratedb_sqlparse/parser.py @@ -1,3 +1,4 @@ +# ruff: noqa: A005 # Module `parser` shadows a Python standard-library module from typing import List from antlr4 import CommonTokenStream, InputStream, RecognitionException, Token @@ -181,7 +182,7 @@ def type(self): return self.ctx.start.text def __repr__(self): - return f'{self.__class__.__qualname__}<{self.query if len(self.query) < 15 else self.query[:15] + "..."}>' + return f"{self.__class__.__qualname__}<{self.query if len(self.query) < 15 else self.query[:15] + '...'}>" def find_suitable_error(statement, errors): diff --git a/cratedb_sqlparse_py/pyproject.toml b/cratedb_sqlparse_py/pyproject.toml index 86f14f1..2055850 100644 --- a/cratedb_sqlparse_py/pyproject.toml +++ b/cratedb_sqlparse_py/pyproject.toml @@ -81,7 +81,7 @@ develop = [ "mypy<1.15", "poethepoet<0.33", "pyproject-fmt<2.6", - "ruff<0.9", + "ruff<0.10", "validate-pyproject<0.24", ] generate = [