Skip to content

Commit ec628c1

Browse files
author
Charly Laurent
committed
chore: support for Python 3.13
Change-Id: Ib4d1f459aa3565694153877a3f6c703f0bb36828
1 parent 8785a51 commit ec628c1

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818
steps:
1919
- uses: actions/[email protected]
2020
- uses: actions/[email protected]

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/[email protected]
1515
- uses: actions/[email protected]
1616
with:
17-
python-version: ">=3.12"
17+
python-version: ">=3.13"
1818
- run: |
1919
pip install -r requirements-poetry.txt
2020
git tag $(poetry version --short)

.mergify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ queue_rules:
99
- check-success=Test with Python 3.10
1010
- check-success=Test with Python 3.11
1111
- check-success=Test with Python 3.12
12+
- check-success=Test with Python 3.13
1213
- "#approved-reviews-by>=1"
1314
- "#changes-requested-reviews-by=0"
1415
- "#review-threads-unresolved=0"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ classifiers = [
2020
"Programming Language :: Python :: 3.10",
2121
"Programming Language :: Python :: 3.11",
2222
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2324
"Programming Language :: Python :: Implementation :: CPython",
2425
"Programming Language :: Python :: Implementation :: PyPy",
2526
"Topic :: Database",
@@ -58,7 +59,7 @@ filterwarnings = ["error"]
5859
[tool.ruff]
5960
line-length = 88
6061
indent-width = 4
61-
target-version = "py312"
62+
target-version = "py313"
6263

6364
[tool.ruff.lint]
6465
preview = true

sql_compare/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def is_comment(self) -> bool:
109109
return isinstance(self.token_list, sqlparse.sql.Comment)
110110

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

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

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

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

0 commit comments

Comments
 (0)