From 0680abde3e977e4bf387b362300df5367809935e Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 15 Jan 2025 22:59:57 +0100 Subject: [PATCH] Chore: Format code using Ruff 0.9 --- cratedb_sqlparse_py/cratedb_sqlparse/parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):