Skip to content

Commit b3f52ca

Browse files
mesh-2092: update python version to 3.14
1 parent 401b455 commit b3f52ca

File tree

9 files changed

+282
-140
lines changed

9 files changed

+282
-140
lines changed

.github/workflows/continous-integration-workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
with:
1313
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
1414

15-
- name: Install Python 3.8
15+
- name: Install Python 3.14
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.8
18+
python-version: 3.14.0
1919

2020
- name: Update apt repositories
2121
run: sudo apt update

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
python 3.8.18
1+
python 3.14.0
22
nodejs 24.7.0
33
poetry 1.8.5

poetry.lock

Lines changed: 267 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name="mesh_api_specification"
3-
python = "^3.8"
3+
python = "^3.14.0"
44

55

66
[tool.poetry]
@@ -23,7 +23,7 @@ keywords = ["healthcare", "uk", "nhs"]
2323

2424

2525
[tool.poetry.dependencies]
26-
python = "^3.8"
26+
python = "^3.14.0"
2727
docopt = "^0.6.2"
2828
jsonpath-rw = "^1.4.0"
2929
semver = "^3.0.4"
@@ -32,19 +32,20 @@ gitpython = "^3.1.46"
3232

3333
[tool.poetry.dev-dependencies]
3434
ruff = "^0.14.14"
35-
black = "^24.4.2"
35+
black = "^26.3.1"
3636
pip-licenses = "^4.3.3"
3737
jinja2 = "^3.1.6"
38+
pytest = "^9.0.2"
3839

3940

4041
[tool.poetry.scripts]
4142

4243
[tool.poetry.group.dev.dependencies]
43-
black = "^24.4.2"
44+
black = "^26.3.1"
4445

4546
[tool.black]
4647
line-length = 120
47-
target-version = ['py38', 'py39', 'py310', 'py311']
48+
target-version = ['py314']
4849
include = '\.pyi?$'
4950
#extend-exclude = '''
5051
#/(
@@ -62,7 +63,7 @@ exclude = [
6263
".venv",
6364
]
6465
line-length = 120
65-
target-version = "py38"
66+
target-version = "py314"
6667

6768

6869
[tool.ruff.lint]

scripts/calculate_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def is_minor_inc(commit):
5353

5454
def without_empty(commits):
5555
"""Takes a list of commits and returns a list without empty commits"""
56-
pairs = zip(commits, commits[1:])
56+
pairs = itertools.pairwise(commits)
5757

5858
for fst, snd in pairs:
5959
if fst.tree != snd.tree:

scripts/generate_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Usage:
77
generate_example.py SPEC_FILE OUT_DIR
88
"""
9+
910
import json
1011
import os
1112
import os.path

scripts/nhs_number_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
This is unused and provided as a convenience/reference implementation.
1414
"""
15+
1516
import argparse
1617

1718

scripts/set_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Reads an openapi spec on stdin and adds the calculated version to it,
66
then prints it on stdout.
77
"""
8+
89
import json
910
import sys
1011

scripts/template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
-f <path> --file=<path> Template from file at path.
1717
-e --env Replace from environment variables instead of JSON argument.
1818
"""
19+
1920
import json
2021
import os
2122
import sys

0 commit comments

Comments
 (0)