Skip to content

Commit ebc5dfb

Browse files
authored
Merge pull request #44 from MrClock8163/feature/python314-support
Python 3.14 support
2 parents f75213d + 65427ba commit ebc5dfb

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ["3.11", "3.12", "3.13"]
16+
python-version: ["3.11", "3.12", "3.13", "3.14"]
1717

1818
steps:
1919
- uses: actions/checkout@v4
@@ -23,7 +23,7 @@ jobs:
2323
python-version: ${{ matrix.python-version }}
2424

2525
- name: Build and install package
26-
run: python -m pip install .[all]
26+
run: python -m pip install .[all] --verbose
2727

2828
- name: Test with pytest
2929
run: |
@@ -44,14 +44,14 @@ jobs:
4444
- name: Setup Python
4545
uses: actions/setup-python@v5
4646
with:
47-
python-version: 3.13
47+
python-version: 3.14
4848

4949
- name: Build and install package
50-
run: python -m pip install .[all]
50+
run: python -m pip install .[all] --verbose
5151

5252
- name: Running ${{ matrix.tool }}
5353
run: |
5454
python -m pip install --upgrade pip
55-
python -m pip install --group linting
55+
python -m pip install --group linting --verbose
5656
python -c "print('=========== ${{ matrix.tool }} ===========')"
5757
python -m ${{ matrix.tool }} src/ tests/

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ dependencies = [
1616
"geocompy ~= 0.14.0",
1717
"rich >= 13.9",
1818
"textual >= 3.2.0",
19-
"rapidfuzz ~= 3.13.0",
19+
"rapidfuzz ~= 3.14.1",
2020
"jsonschema ~= 4.21",
2121
"jmespath ~= 1.0.1",
2222
"toml ~= 0.10.2",
2323
"PyYAML ~= 6.0.2",
24-
"numpy ~= 2.0",
24+
"numpy ~= 2.3",
2525
"pillow ~= 11.0",
2626
"cloup ~= 3.0.7",
2727
"click-extra ~= 5.0.2"
@@ -77,7 +77,7 @@ linting = [
7777
"types-jmespath >= 1.0.2.4",
7878
"types-toml >= 0.10.8.20240310",
7979
"types-PyYAML >= 6.0.12.20250516",
80-
"mypy >= 1.17.1",
80+
"mypy >= 1.18.2",
8181
"flake8 >= 7.3.0"
8282
]
8383
development = [

src/instrumentman/terminal/app.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,15 @@ async def get_suggestion(self, value: str) -> str | None:
244244

245245
separator = "." if path != "" else ""
246246

247-
suggestion = process.extractOne(
248-
partial, suggest, scorer=fuzz.partial_ratio)[0]
247+
extracted = process.extractOne(
248+
partial,
249+
suggest,
250+
scorer=fuzz.partial_ratio
251+
)
252+
if extracted is None:
253+
return None
254+
255+
suggestion = extracted[0]
249256

250257
return f"{path}{separator}{suggestion}"
251258

0 commit comments

Comments
 (0)