Skip to content

Commit

Permalink
Chore: Format code using Ruff 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jan 15, 2025
1 parent 7f13f2b commit 30a7cce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cratedb_sqlparse_py/cratedb_sqlparse/parser.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 30a7cce

Please sign in to comment.