Skip to content

Commit 7aa97da

Browse files
committed
build: ⬆️ Make compatible with Python 3.14
1 parent e07dd1b commit 7aa97da

5 files changed

Lines changed: 67 additions & 411 deletions

File tree

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: sunday
8+
time: "13:15"
9+
timezone: Europe/Amsterdam
10+
open-pull-requests-limit: 10
11+
commit-message:
12+
prefix: "build"
13+
- package-ecosystem: "uv"
14+
directory: "/"
15+
schedule:
16+
interval: "weekly"
17+
day: sunday
18+
time: "13:00"
19+
timezone: Europe/Amsterdam
20+
open-pull-requests-limit: 10
21+
commit-message:
22+
prefix: "build"

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

codelimit/common/Scanner.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
from pathlib import Path
66
from typing import Union, Callable
77

8-
from pathspec import PathSpec
9-
from pygments.lexer import Lexer
10-
from pygments.lexers import get_lexer_for_filename
11-
from pygments.util import ClassNotFound
12-
from rich import print
13-
from rich.live import Live
14-
158
from codelimit.common.Codebase import Codebase
169
from codelimit.common.Configuration import Configuration
1710
from codelimit.common.Language import Language
@@ -29,6 +22,12 @@
2922
calculate_checksum,
3023
)
3124
from codelimit.languages import Languages
25+
from pathspec import PathSpec
26+
from pygments.lexer import Lexer
27+
from pygments.lexers import get_lexer_for_filename
28+
from pygments.util import ClassNotFound
29+
from rich import print
30+
from rich.live import Live
3231

3332
locale.setlocale(locale.LC_ALL, "")
3433

@@ -205,4 +204,6 @@ def is_excluded(path: Path, spec: PathSpec):
205204
"venv",
206205
"test",
207206
"tests",
207+
"acceptancetests",
208+
"integrationtests"
208209
]

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "codelimit"
33
version = "0.20.2"
44
description = "Your Refactoring Alarm"
55
authors = [{ name = "Rob van der Leek", email = "robvanderleek@gmail.com" }]
6-
requires-python = ">=3.10,<3.14"
6+
requires-python = ">=3.10,<3.15"
77
readme = "README.md"
88
license = "GPL-3.0-or-later"
99
dependencies = [
@@ -14,7 +14,7 @@ dependencies = [
1414
"pyperclip>=1.9.0,<2",
1515
"pyyaml>=6.0.1,<7",
1616
"requests>=2.28.2,<3",
17-
"rich>=13.7.1,<14",
17+
"rich>=14.2.0",
1818
"sh>=2.1.0,<3",
1919
"typer>=0.16.0",
2020
]
@@ -36,8 +36,7 @@ dev = [
3636
"types-pyyaml>=6.0.12.20240917,<7",
3737
"mypy>=1.13.0,<2",
3838
"black>=24.10.0,<25",
39-
"ruff>=0.8.2,<0.9",
40-
"python-semantic-release>=9.21.0",
39+
"ruff>=0.8.2,<0.9"
4140
]
4241

4342
[build-system]

0 commit comments

Comments
 (0)