Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: ">=3.12"
python-version: ">=3.13"
- run: |
pip install -r requirements-poetry.txt
git tag $(poetry version --short)
Expand Down
1 change: 1 addition & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ queue_rules:
- check-success=Test with Python 3.10
- check-success=Test with Python 3.11
- check-success=Test with Python 3.12
- check-success=Test with Python 3.13
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "#review-threads-unresolved=0"
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Database",
Expand Down Expand Up @@ -58,7 +59,7 @@ filterwarnings = ["error"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
target-version = "py313"

[tool.ruff.lint]
preview = true
Expand Down
6 changes: 3 additions & 3 deletions sql_compare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def is_comment(self) -> bool:
return isinstance(self.token_list, sqlparse.sql.Comment)

@property
def tokens(self) -> Generator[Token | TokenList, None, None]:
def tokens(self) -> Generator[Token | TokenList]:
"""Yield relevant tokens in a deterministic order."""
for token in self.token_list.tokens:
if token.is_group:
Expand Down Expand Up @@ -167,7 +167,7 @@ def is_unordered(token_list: sqlparse.sql.TokenList, statement_type: str) -> boo
)

@property
def tokens(self) -> Generator[Token | TokenList, None, None]:
def tokens(self) -> Generator[Token | TokenList]:
"""Yield relevant tokens in a deterministic order."""
filtered_tokens = [t for t in self.flatten_tokens if not t.ignore]

Expand All @@ -186,7 +186,7 @@ def tokens(self) -> Generator[Token | TokenList, None, None]:
yield from sorted_tokens

@property
def flatten_tokens(self) -> Generator[Token, None, None]:
def flatten_tokens(self) -> Generator[Token]:
"""Yield all tokens in the token tree."""
yield from (Token(t) for t in self.token_list.flatten())

Expand Down
Loading