Skip to content

Commit d89000e

Browse files
committed
chore: add yamlfix
Adding YamlFix to lint and format YAML files automatically. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 2c0d156 commit d89000e

20 files changed

+186
-125
lines changed

.github/ISSUE_TEMPLATE/bug.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
---
12
name: 🐛 Bug Report
23
description: Submit a bug report to help us improve
3-
labels: [bug, triage]
4+
5+
labels:
6+
- bug
7+
- triage
8+
49
body:
510
- type: markdown
611
attributes:
@@ -33,7 +38,8 @@ body:
3338
- type: checkboxes
3439
attributes:
3540
label: Prerequisites
36-
description: Please check the following items before creating a issue. This way we know you've done these steps first.
41+
description: Please check the following items before creating a issue. This way we know you've done
42+
these steps first.
3743
options:
3844
- label: I'm using the latest version of `pact-python`.
3945
required: true
@@ -65,7 +71,8 @@ body:
6571
- type: textarea
6672
attributes:
6773
label: Steps to reproduce
68-
description: Write down the steps to reproduce the bug. You should start with a fresh installation, or your git repository linked above.
74+
description: Write down the steps to reproduce the bug. You should start with a fresh installation,
75+
or your git repository linked above.
6976
placeholder: |
7077
1. Step 1...
7178
2. Step 2...
@@ -76,7 +83,8 @@ body:
7683
- type: textarea
7784
attributes:
7885
label: Expected behavior
79-
description: How did you expect your project to behave? It's fine if you're not sure your understanding is correct. Write down what you thought would happen.
86+
description: How did you expect your project to behave? It's fine if you're not sure your understanding
87+
is correct. Write down what you thought would happen.
8088
placeholder: Write what you thought would happen.
8189
validations:
8290
required: true

.github/ISSUE_TEMPLATE/config.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
---
12
blank_issues_enabled: true
3+
24
contact_links:
35
- name: ❓ Simple question - Slack chat
46
url: https://slack.pact.io
57
about: If you have a simple question, or want to discuss a feature request, join our Slack chat.
68
- name: ❓ Simple question - Stack Overflow
79
url: https://stackoverflow.com/questions/tagged/pact
8-
about: The GitHub issue tracker is not for technical support. Please use Stack Overflow, and ask the community for help.
10+
about: The GitHub issue tracker is not for technical support. Please use Stack Overflow, and ask the
11+
community for help.
912
- name: ❓ Advanced question - GitHub Discussions
1013
url: https://github.com/pact-foundation/pact-python/discussions
11-
about: Use GitHub Discussions for advanced and unanswered questions only, requiring a maintainer's answer. Make sure the question wasn't already asked.
14+
about: Use GitHub Discussions for advanced and unanswered questions only, requiring a maintainer's
15+
answer. Make sure the question wasn't already asked.

.github/ISSUE_TEMPLATE/feature.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
---
12
name: 💡 Feature design / RFC
23
description: Submit a detailed feature request with a concrete proposal
3-
labels: [feature, triage]
4+
5+
labels:
6+
- feature
7+
- triage
8+
49
body:
510
- type: markdown
611
attributes:
@@ -27,7 +32,8 @@ body:
2732
- type: textarea
2833
attributes:
2934
label: Motivation
30-
description: Please outline the motivation for the proposal and why it should be implemented. Has this been requested by a lot of users?
35+
description: Please outline the motivation for the proposal and why it should be implemented. Has
36+
this been requested by a lot of users?
3137
validations:
3238
required: true
3339

.github/codecov.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
---
12
coverage:
23
precision: 0
34
round: down
4-
range: "60...85"
5+
range: 60...85

.github/labels.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
---
12
- name: area:v3
23
description: Relating to the pact.v3 module
3-
color: "C2E0C6"
4+
color: C2E0C6
45

56
- name: area:v2
67
description: Relating to v2 code
7-
color: "C2E0C6"
8+
color: C2E0C6
89

910
- name: area:examples
1011
description: Relating to the examples
11-
color: "C2E0C6"
12+
color: C2E0C6

.github/semantic.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
---
12
titleAndCommits: true
23
allowMergeCommits: true

.github/workflows/build.yml

+25-24
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: build
23

34
on:
@@ -15,9 +16,9 @@ concurrency:
1516
cancel-in-progress: true
1617

1718
env:
18-
STABLE_PYTHON_VERSION: "3.13"
19-
HATCH_VERBOSE: "1"
20-
FORCE_COLOR: "1"
19+
STABLE_PYTHON_VERSION: '3.13'
20+
HATCH_VERBOSE: '1'
21+
FORCE_COLOR: '1'
2122
CIBW_BUILD_FRONTEND: build
2223

2324
jobs:
@@ -45,13 +46,13 @@ jobs:
4546
runs-on: ubuntu-20.04
4647

4748
steps:
48-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
49+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4950
with:
5051
# Fetch all tags
5152
fetch-depth: 0
5253

5354
- name: Set up Python
54-
uses: astral-sh/setup-uv@e779db74266a80753577425b0f4ee823649f251d # v3.2.3
55+
uses: astral-sh/setup-uv@e779db74266a80753577425b0f4ee823649f251d # v3.2.3
5556
with:
5657
enable-cache: true
5758
cache-dependency-glob: |
@@ -69,7 +70,7 @@ jobs:
6970
hatch build --target sdist
7071
7172
- name: Upload sdist
72-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
73+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
7374
with:
7475
name: wheels-sdist
7576
path: ./dist/*.tar.*
@@ -92,13 +93,13 @@ jobs:
9293
archs: AMD64
9394

9495
steps:
95-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
96+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
9697
with:
9798
# Fetch all tags
9899
fetch-depth: 0
99100

100101
- name: Cache pip packages
101-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
102+
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
102103
with:
103104
path: ~/.cache/pip
104105
key: ${{ github.workflow }}-pip-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
@@ -125,13 +126,13 @@ jobs:
125126
echo "MACOSX_DEPLOYMENT_TARGET=10.12" >> "$GITHUB_ENV"
126127
127128
- name: Create wheels
128-
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
129+
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
129130
env:
130131
CIBW_ARCHS: ${{ matrix.archs }}
131132
CIBW_BUILD: ${{ steps.cibw-filter.outputs.build }}
132133

133134
- name: Upload wheels
134-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
135+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
135136
with:
136137
name: wheels-${{ matrix.os }}-${{ matrix.archs }}
137138
path: ./wheelhouse/*.whl
@@ -158,21 +159,21 @@ jobs:
158159
build: musllinux
159160
- os: macos-14
160161
archs: arm64
161-
build: ""
162+
build: ''
162163
# TODO: Re-enable once the issues with Windows ARM64 are resolved.exclude:
163164
# See: pypa/cibuildwheel#1942
164165
# - os: windows-2019
165166
# archs: ARM64
166167
# build: ""
167168

168169
steps:
169-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
170+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
170171
with:
171172
# Fetch all tags
172173
fetch-depth: 0
173174

174175
- name: Cache pip packages
175-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
176+
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
176177
with:
177178
path: ~/.cache/pip
178179
key: ${{ github.workflow }}-pip-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
@@ -183,18 +184,18 @@ jobs:
183184
184185
- name: Set up QEMU
185186
if: startsWith(matrix.os, 'ubuntu-')
186-
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
187+
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
187188
with:
188189
platforms: arm64
189190

190191
- name: Create wheels
191-
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
192+
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
192193
env:
193194
CIBW_ARCHS: ${{ matrix.archs }}
194195
CIBW_BUILD: ${{ matrix.build == '' && '*' || format('*{0}*', matrix.build) }}
195196

196197
- name: Upload wheels
197-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
198+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
198199
with:
199200
name: wheels-${{ matrix.os }}-${{ matrix.archs }}-${{ matrix.build }}
200201
path: ./wheelhouse/*.whl
@@ -225,19 +226,19 @@ jobs:
225226

226227
steps:
227228
- name: Checkout code
228-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
229+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
229230
with:
230231
# Fetch all tags
231232
fetch-depth: 0
232233

233234
- name: Download wheels and sdist
234-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
235+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
235236
with:
236237
path: wheels
237238
merge-multiple: true
238239

239240
- name: Set up uv
240-
uses: astral-sh/setup-uv@e779db74266a80753577425b0f4ee823649f251d # v3.2.3
241+
uses: astral-sh/setup-uv@e779db74266a80753577425b0f4ee823649f251d # v3.2.3
241242
with:
242243
enable-cache: true
243244
cache-dependency-glob: |
@@ -269,7 +270,7 @@ jobs:
269270
270271
- name: Generate release
271272
id: release
272-
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
273+
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
273274
with:
274275
files: wheels/*
275276
body_path: ${{ runner.temp }}/changelog
@@ -278,17 +279,17 @@ jobs:
278279
generate_release_notes: true
279280

280281
- name: Push build artifacts to PyPI
281-
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2
282+
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2
282283
with:
283284
skip-existing: true
284285
packages-dir: wheels
285286

286287
- name: Create PR for changelog update
287-
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7
288+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7
288289
with:
289290
token: ${{ secrets.GH_TOKEN }}
290-
commit-message: "chore: update changelog ${{ github.ref_name }}"
291-
title: "chore: update changelog"
291+
commit-message: 'chore: update changelog ${{ github.ref_name }}'
292+
title: 'chore: update changelog'
292293
body: |
293294
This PR updates the changelog for ${{ github.ref_name }}.
294295
branch: chore/update-changelog

.github/workflows/docs.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: docs
23

34
on:
@@ -9,9 +10,9 @@ on:
910
- master
1011

1112
env:
12-
STABLE_PYTHON_VERSION: "3.13"
13-
FORCE_COLOR: "1"
14-
HATCH_VERBOSE: "1"
13+
STABLE_PYTHON_VERSION: '3.13'
14+
FORCE_COLOR: '1'
15+
HATCH_VERBOSE: '1'
1516

1617
jobs:
1718
build:
@@ -21,12 +22,12 @@ jobs:
2122

2223
steps:
2324
- name: Checkout code
24-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2526
with:
2627
fetch-depth: 0
2728

2829
- name: Set up uv
29-
uses: astral-sh/setup-uv@e779db74266a80753577425b0f4ee823649f251d # v3.2.3
30+
uses: astral-sh/setup-uv@e779db74266a80753577425b0f4ee823649f251d # v3.2.3
3031
with:
3132
enable-cache: true
3233
cache-dependency-glob: |
@@ -44,7 +45,7 @@ jobs:
4445
hatch run mkdocs build
4546
4647
- name: Upload artifact
47-
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
48+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
4849
with:
4950
path: site
5051

@@ -66,4 +67,4 @@ jobs:
6667
steps:
6768
- name: Deploy to GitHub Pages
6869
id: deployment
69-
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
70+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/labels.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
---
12
name: Labels
23

34
on:
45
# For downstream repos, we want to run this on a schedule
56
# so that updates propagate automatically. Weekly is probably
67
# enough.
78
schedule:
8-
- cron: "20 0 * * 0"
9+
- cron: 20 0 * * 0
910
push:
1011
branches:
1112
- master
@@ -20,11 +21,11 @@ jobs:
2021

2122
steps:
2223
- name: Checkout Code
23-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2425

2526
- name: Synchronize labels
26-
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2
27+
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2
2728
with:
28-
config-file: |
29+
config-file: |-
2930
https://raw.githubusercontent.com/pact-foundation/.github/master/.github/labels.yml
3031
.github/labels.yml

.github/workflows/smartbear-issue-label-added.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: SmartBear Supported Issue Label Added
23

34
on:

0 commit comments

Comments
 (0)