Skip to content

Commit 25035b2

Browse files
Merge branch 'main' into fixing_issue_1005
2 parents aa62557 + 65f2469 commit 25035b2

37 files changed

Lines changed: 573 additions & 321 deletions

.devcontainer/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.14-slim@sha256:2751cbe93751f0147bc1584be957c6dd4c5f977c3d4e0396b56456a9fd4ed137
1+
FROM python:3.14-slim@sha256:9006fc63e3eaedc00ebc81193c99528575a2f9b9e3fb36d95e94814c23f31f47
22

33
ARG USERNAME=vscode
44
ARG USER_UID=1000

.github/workflows/build-cli.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ jobs:
5050

5151
steps:
5252
- name: Checkout code
53-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
53+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5454
with:
5555
fetch-depth: 0
5656

5757
- name: Set up uv
58-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
58+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
5959
with:
6060
enable-cache: true
6161

@@ -94,12 +94,12 @@ jobs:
9494

9595
steps:
9696
- name: Checkout code
97-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
97+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9898
with:
9999
fetch-depth: 0
100100

101101
- name: Create wheels
102-
uses: pypa/cibuildwheel@63fd63b352a9a8bdcc24791c9dbee952ee9a8abc # v3.3.0
102+
uses: pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3.1
103103
with:
104104
package-dir: pact-python-cli
105105
env:
@@ -135,12 +135,12 @@ jobs:
135135

136136
steps:
137137
- name: Checkout code
138-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
138+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
139139
with:
140140
fetch-depth: 0
141141

142142
- name: Install git cliff and typos
143-
uses: taiki-e/install-action@61e5998d108b2b55a81b9b386c18bd46e4237e4f # v2.63.1
143+
uses: taiki-e/install-action@f92912fad184299a31e22ad070a5059fd07d4f59 # v2.68.7
144144
with:
145145
tool: git-cliff,typos
146146

@@ -201,7 +201,7 @@ jobs:
201201
packages-dir: wheelhouse
202202

203203
- name: Create PR for changelog update
204-
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
204+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
205205
with:
206206
token: ${{ secrets.GH_TOKEN }}
207207
commit-message: 'docs: update changelog for ${{ github.ref_name }}'

.github/workflows/build-ffi.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ jobs:
5050

5151
steps:
5252
- name: Checkout code
53-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
53+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5454
with:
5555
fetch-depth: 0
5656

5757
- name: Set up uv
58-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
58+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
5959
with:
6060
enable-cache: true
6161

@@ -94,12 +94,12 @@ jobs:
9494

9595
steps:
9696
- name: Checkout code
97-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
97+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9898
with:
9999
fetch-depth: 0
100100

101101
- name: Create wheels
102-
uses: pypa/cibuildwheel@63fd63b352a9a8bdcc24791c9dbee952ee9a8abc # v3.3.0
102+
uses: pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3.1
103103
with:
104104
package-dir: pact-python-ffi
105105
env:
@@ -136,12 +136,12 @@ jobs:
136136

137137
steps:
138138
- name: Checkout code
139-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
139+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
140140
with:
141141
fetch-depth: 0
142142

143143
- name: Install git cliff and typos
144-
uses: taiki-e/install-action@61e5998d108b2b55a81b9b386c18bd46e4237e4f # v2.63.1
144+
uses: taiki-e/install-action@f92912fad184299a31e22ad070a5059fd07d4f59 # v2.68.7
145145
with:
146146
tool: git-cliff,typos
147147

@@ -202,7 +202,7 @@ jobs:
202202
packages-dir: wheelhouse
203203

204204
- name: Create PR for changelog update
205-
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
205+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
206206
with:
207207
token: ${{ secrets.GH_TOKEN }}
208208
commit-message: 'docs: update changelog for ${{ github.ref_name }}'

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ jobs:
4949

5050
steps:
5151
- name: Checkout code
52-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
52+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5353
with:
5454
fetch-depth: 0
5555

5656
- name: Set up uv
57-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
57+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
5858
with:
5959
enable-cache: true
6060

@@ -104,12 +104,12 @@ jobs:
104104

105105
steps:
106106
- name: Checkout code
107-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
107+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
108108
with:
109109
fetch-depth: 0
110110

111111
- name: Install git cliff and typos
112-
uses: taiki-e/install-action@61e5998d108b2b55a81b9b386c18bd46e4237e4f # v2.63.1
112+
uses: taiki-e/install-action@f92912fad184299a31e22ad070a5059fd07d4f59 # v2.68.7
113113
with:
114114
tool: git-cliff,typos
115115

@@ -168,7 +168,7 @@ jobs:
168168
packages-dir: wheelhouse
169169

170170
- name: Create PR for changelog update
171-
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
171+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
172172
with:
173173
token: ${{ secrets.GH_TOKEN }}
174174
commit-message: 'docs: update changelog for ${{ github.ref_name }}'

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
25+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626
with:
2727
fetch-depth: 0
2828

2929
- name: Set up uv
30-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
30+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
3131
with:
3232
enable-cache: true
3333
cache-dependency-glob: |

.github/workflows/labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout Code
27-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2828

2929
- name: Synchronize labels
3030
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3

.github/workflows/test.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ jobs:
7070

7171
steps:
7272
- name: Checkout code
73-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
73+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7474
with:
7575
fetch-depth: 0
7676
submodules: true
7777

7878
- name: Set up uv
79-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
79+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
8080
with:
8181
enable-cache: true
8282

@@ -99,8 +99,6 @@ jobs:
9999
run: hatch run test.py${{ matrix.python-version }}:test --junit-xml=junit.xml
100100

101101
- name: Run tests (v2)
102-
# Temporary workaround until Pydantic 3.12 is released with Python 3.14 support
103-
if: matrix.python-version != '3.14'
104102
run: hatch run v2-test.py${{ matrix.python-version }}:test --junit-xml=v2-junit.xml
105103

106104
- name: Run tests (CLI)
@@ -143,18 +141,16 @@ jobs:
143141
- '3.11'
144142
- '3.12'
145143
- '3.13'
146-
# Temporarily excluded until Pydantic 3.12 is released with Python
147-
# 3.14 support
148-
# - '3.14'
144+
- '3.14'
149145

150146
steps:
151147
- name: Checkout code
152-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
148+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
153149
with:
154150
fetch-depth: 0
155151

156152
- name: Set up uv
157-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
153+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
158154
with:
159155
enable-cache: true
160156

@@ -169,6 +165,7 @@ jobs:
169165
170166
while IFS= read -r -d $'\0' file <&3; do
171167
cd "$(dirname "$file")"
168+
echo "Running example in $(pwd)"
172169
uv run --python ${{ matrix.python-version }} --group test pytest --junit-xml=junit.xml
173170
done 3< <(find "$(pwd)/examples" -name pyproject.toml -print0)
174171
@@ -192,12 +189,12 @@ jobs:
192189

193190
steps:
194191
- name: Checkout code
195-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
192+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
196193
with:
197194
fetch-depth: 0
198195

199196
- name: Set up uv
200-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
197+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
201198
with:
202199
enable-cache: true
203200

@@ -224,12 +221,12 @@ jobs:
224221

225222
steps:
226223
- name: Checkout code
227-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
224+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
228225
with:
229226
fetch-depth: 0
230227

231228
- name: Set up uv
232-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
229+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
233230
with:
234231
enable-cache: true
235232

@@ -257,12 +254,12 @@ jobs:
257254

258255
steps:
259256
- name: Checkout code
260-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
257+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
261258
with:
262259
fetch-depth: 0
263260

264261
- name: Set up uv
265-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
262+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
266263
with:
267264
enable-cache: true
268265

@@ -285,10 +282,10 @@ jobs:
285282
runs-on: ubuntu-latest
286283

287284
steps:
288-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
285+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
289286

290287
- name: Cache prek
291-
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
288+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
292289
with:
293290
path: |-
294291
~/.cache/prek
@@ -302,7 +299,7 @@ jobs:
302299
${{ runner.os }}-prek-
303300
304301
- name: Set up uv
305-
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
302+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
306303
with:
307304
enable-cache: true
308305
cache-suffix: prek

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ repos:
2222
- id: trailing-whitespace
2323

2424
- repo: https://github.com/google/yamlfmt
25-
rev: v0.20.0
25+
rev: v0.21.0
2626
hooks:
2727
- id: yamlfmt
2828

2929
- repo: https://gitlab.com/bmares/check-json5
30-
rev: v1.0.0
30+
rev: v1.0.1
3131
hooks:
3232
# As above, this only checks for valid JSON files. This implementation
3333
# allows for comments within JSON files.
3434
- id: check-json5
3535

3636
- repo: https://github.com/biomejs/pre-commit
37-
rev: v2.3.8
37+
rev: v2.4.4
3838
hooks:
3939
- id: biome-check
4040

4141
- repo: https://github.com/astral-sh/ruff-pre-commit
42-
rev: v0.14.9
42+
rev: v0.15.2
4343
hooks:
4444
- id: ruff-check
4545
exclude: |
@@ -56,17 +56,17 @@ repos:
5656
)$
5757
5858
- repo: https://github.com/crate-ci/committed
59-
rev: v1.1.8
59+
rev: v1.1.11
6060
hooks:
6161
- id: committed
6262

6363
- repo: https://github.com/DavidAnson/markdownlint-cli2
64-
rev: v0.20.0
64+
rev: v0.21.0
6565
hooks:
6666
- id: markdownlint-cli2
6767

6868
- repo: https://github.com/crate-ci/typos
69-
rev: v1.40.0
69+
rev: v1.43.5
7070
hooks:
7171
- id: typos
7272
exclude: |

docs/scripts/markdown.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def process_markdown(
7575
]
7676
files = sorted(
7777
Path(p)
78-
for p in subprocess.check_output( # noqa: S603
78+
for p in subprocess # noqa: S603
79+
.check_output(
7980
["git", "ls-files", src], # noqa: S607
8081
)
8182
.decode("utf-8")

docs/scripts/other.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
ALL_FILES = sorted(
3737
map(
3838
Path,
39-
subprocess.check_output(["git", "ls-files", SRC_ROOT]) # noqa: S603, S607
39+
subprocess # noqa: S603
40+
.check_output(["git", "ls-files", SRC_ROOT]) # noqa: S607
4041
.decode("utf-8")
4142
.splitlines(),
4243
),
@@ -71,7 +72,7 @@ def is_binary(buffer: bytes) -> bool:
7172
for source_path in ALL_FILES:
7273
if not source_path.is_file():
7374
continue
74-
if source_path.parts[0] in ["docs"]:
75+
if source_path.parts[0] == "docs":
7576
continue
7677

7778
dest_path = Path(DOCS_DEST, source_path)

0 commit comments

Comments
 (0)