Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ruff requirement from <0.9 to <0.10 in /cratedb_sqlparse_py #138

Merged
merged 2 commits into from
Jan 16, 2025
Merged
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
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
2 changes: 1 addition & 1 deletion cratedb_sqlparse_py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Loading