Skip to content

Commit e2141bc

Browse files
authored
Merge pull request #140 from NHSDigital/mm-mesh-1761-update-api-spec-to-remove-hscn
mesh-1761: switch from pairwise back to previous implementation
2 parents fea5d45 + fa9240c commit e2141bc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python 3.10.12

scripts/calculate_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import itertools
2020
import os.path
21-
from itertools import pairwise
2221

2322
import git
2423
import semver
@@ -54,7 +53,7 @@ def is_minor_inc(commit):
5453

5554
def without_empty(commits):
5655
"""Takes a list of commits and returns a list without empty commits"""
57-
pairs = pairwise(commits)
56+
pairs = zip(commits, commits[1:], strict=False) # noqa: RUF007
5857

5958
for fst, snd in pairs:
6059
if fst.tree != snd.tree:

0 commit comments

Comments
 (0)