Skip to content

Commit 1900a94

Browse files
committed
chore: merge with repo-template
Signed-off-by: Ian Lewis <ian@ianlewis.org>
2 parents 811a219 + d023a76 commit 1900a94

19 files changed

+747
-106
lines changed

.aqua-checksums.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
11
{
22
"checksums": [
3+
{
4+
"id": "github_release/github.com/astral-sh/ruff/0.12.9/ruff-aarch64-apple-darwin.tar.gz",
5+
"checksum": "68CB47F9A98E17C59E861C3B635B32C5212DEFD21A4EC0B5C1D56950D06076E5",
6+
"algorithm": "sha256"
7+
},
8+
{
9+
"id": "github_release/github.com/astral-sh/ruff/0.12.9/ruff-aarch64-pc-windows-msvc.zip",
10+
"checksum": "C747D2CA1BD3BB6DF0A2AF31F39A53180F2BF556242E5380C495CBD7056C10BE",
11+
"algorithm": "sha256"
12+
},
13+
{
14+
"id": "github_release/github.com/astral-sh/ruff/0.12.9/ruff-aarch64-unknown-linux-musl.tar.gz",
15+
"checksum": "DCA567860383BB6A7B021DAB76C616B02ED9A268516A0A1A1DCE56EE482740D7",
16+
"algorithm": "sha256"
17+
},
18+
{
19+
"id": "github_release/github.com/astral-sh/ruff/0.12.9/ruff-x86_64-apple-darwin.tar.gz",
20+
"checksum": "CC8195F89146268086E99225316B4214100EB78010AA84B9E650F8322D5790F0",
21+
"algorithm": "sha256"
22+
},
23+
{
24+
"id": "github_release/github.com/astral-sh/ruff/0.12.9/ruff-x86_64-pc-windows-msvc.zip",
25+
"checksum": "9D360DFD4CA5F688AABF542C570644FAB8B02A3C0E71460CF51FC4869DF03BA6",
26+
"algorithm": "sha256"
27+
},
28+
{
29+
"id": "github_release/github.com/astral-sh/ruff/0.12.9/ruff-x86_64-unknown-linux-musl.tar.gz",
30+
"checksum": "C177D59D4C6347ABBF08C8943EFF919432D5C70229A0DD6390E5697D393A9C05",
31+
"algorithm": "sha256"
32+
},
33+
{
34+
"id": "github_release/github.com/astral-sh/ruff/0.13.3/ruff-aarch64-apple-darwin.tar.gz",
35+
"checksum": "A170EAD9A9F03527DBA3D2FB3E9E445F73D9EFE3584C3307F3D30C6D5F31C487",
36+
"algorithm": "sha256"
37+
},
38+
{
39+
"id": "github_release/github.com/astral-sh/ruff/0.13.3/ruff-aarch64-pc-windows-msvc.zip",
40+
"checksum": "382C0C3948330F8ABE0B5349C41AA80A01A6C54201F2312EF41152A057008BCE",
41+
"algorithm": "sha256"
42+
},
43+
{
44+
"id": "github_release/github.com/astral-sh/ruff/0.13.3/ruff-aarch64-unknown-linux-musl.tar.gz",
45+
"checksum": "4301D51FD2FBCE6D4CC55613E5F8F96EE4FCB8DCAEC8419023FE555575CF78F6",
46+
"algorithm": "sha256"
47+
},
48+
{
49+
"id": "github_release/github.com/astral-sh/ruff/0.13.3/ruff-x86_64-apple-darwin.tar.gz",
50+
"checksum": "1C3A291A595DDD08398EB1E06FBA883B7D8D715BD4255AF5972F858FEC8B4E57",
51+
"algorithm": "sha256"
52+
},
53+
{
54+
"id": "github_release/github.com/astral-sh/ruff/0.13.3/ruff-x86_64-pc-windows-msvc.zip",
55+
"checksum": "01E7CE81E052AD8788D6A9BFFBCE74524D80FBF0659E6194165D1E1D3DED9F39",
56+
"algorithm": "sha256"
57+
},
58+
{
59+
"id": "github_release/github.com/astral-sh/ruff/0.13.3/ruff-x86_64-unknown-linux-musl.tar.gz",
60+
"checksum": "8D24D74171772C67366D3187B990A3DC706022AA3A631B2A612D12E362F226C7",
61+
"algorithm": "sha256"
62+
},
363
{
464
"id": "github_release/github.com/checkmake/checkmake/0.2.2/checkmake-0.2.2.darwin.amd64",
565
"checksum": "AFAA325D2348043F9A60D3D7BA7803A0A54B760095EA03837C4DE357C75478EF",
@@ -304,6 +364,11 @@
304364
"id": "registries/github_content/github.com/aquaproj/aqua-registry/v4.432.0/registry.yaml",
305365
"checksum": "96CBA2F96234E92A8BEA7A9F4E8D111F725D0AA0C7EDE342CDFAB9119C4176593BB2AB922B3D3FF3A539386BE19D2FA704323C13A11E098BB2B82C270AF60874",
306366
"algorithm": "sha512"
367+
},
368+
{
369+
"id": "registries/github_content/github.com/aquaproj/aqua-registry/v4.421.0/registry.yaml",
370+
"checksum": "28F12785429274ADCFA97906A10D80FFC44D0FAEF7CF1560119A31EA218C118E0C173C7FAEDDE31449665D25741B12F40EF3FFFCA4540947BE96D5CD370A92DE",
371+
"algorithm": "sha512"
307372
}
308373
]
309374
}

.aqua.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ packages:
3030
- name: jqlang/jq@jq-1.8.1
3131
- name: ianlewis/todos@v0.13.0
3232
- name: checkmake/checkmake@0.2.2
33+
- name: astral-sh/ruff@0.13.3

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ charset = utf-8
1414
trim_trailing_whitespace = true
1515

1616
# tab-width of 4 is recommended for Markdown files.
17-
[*.md]
17+
[{*.md,*.py}]
1818
indent_style = space
1919
indent_size = 4
2020

.github/workflows/pull_request.tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ concurrency:
3535
# just a human-readable label.
3636

3737
jobs:
38+
# tests
39+
###############################
40+
unit-test:
41+
uses: ./.github/workflows/workflow_call.unit-test.yml
42+
secrets:
43+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
44+
3845
# format-check
3946
###############################
4047
format-check:
@@ -57,9 +64,15 @@ jobs:
5764
markdownlint:
5865
uses: ./.github/workflows/workflow_call.markdownlint.yml
5966

67+
mypy:
68+
uses: ./.github/workflows/workflow_call.mypy.yml
69+
6070
renovate-config-validator:
6171
uses: ./.github/workflows/workflow_call.renovate-config-validator.yml
6272

73+
ruff:
74+
uses: ./.github/workflows/workflow_call.ruff.yml
75+
6376
textlint:
6477
uses: ./.github/workflows/workflow_call.textlint.yml
6578

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright 2024 Ian Lewis
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: mypy
16+
17+
on:
18+
workflow_call:
19+
20+
permissions:
21+
contents: read
22+
23+
concurrency:
24+
group: mypy-${{ github.event.pull_request.number || github.ref }}
25+
cancel-in-progress: true
26+
27+
jobs:
28+
mypy:
29+
name: mypy
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
with:
34+
submodules: true
35+
persist-credentials: false
36+
37+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
38+
with:
39+
python-version-file: ".python-version"
40+
41+
- run: make mypy
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright 2025 Ian Lewis
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: ruff
16+
17+
on:
18+
workflow_call:
19+
20+
permissions:
21+
contents: read
22+
23+
concurrency:
24+
group: ruff-${{ github.event.pull_request.number || github.ref }}
25+
cancel-in-progress: true
26+
27+
jobs:
28+
ruff:
29+
name: ruff
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
with:
34+
persist-credentials: false
35+
- name: ruff
36+
env:
37+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: make ruff
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright 2025 Ian Lewis
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: unit-test
16+
17+
on:
18+
workflow_call:
19+
secrets:
20+
CODECOV_TOKEN:
21+
required: true
22+
23+
permissions:
24+
contents: read
25+
26+
concurrency:
27+
group: unit-test-${{ github.event.pull_request.number || github.ref }}
28+
cancel-in-progress: true
29+
30+
jobs:
31+
unit-test:
32+
name: unit-test
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
36+
with:
37+
persist-credentials: false
38+
39+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
40+
with:
41+
python-version-file: ".python-version"
42+
43+
- name: unit-test
44+
env:
45+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
run: make unit-test
47+
48+
- name: Upload coverage reports to Codecov
49+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
50+
env:
51+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
52+
if: ${{ env.CODECOV_TOKEN != '' }}
53+
with:
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
files: coverage.xml
56+
fail_ci_if_error: true

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,14 @@ node_modules/
99

1010
# SARIF files
1111
*.sarif.json
12+
13+
# Python caches and build directories.
14+
*.py[cod]
15+
*.egg-info/
16+
build/
17+
dist/
18+
__pycache__
19+
20+
# Coverage files
21+
.coverage
22+
coverage.xml

.textlintrc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ rules:
2121
spelling:
2222
language: "en"
2323
skipPatterns:
24+
- "/\\bCodecov\\b/" # Code coverage service
25+
2426
- "/\\bAMD64\\b/g"
2527
- "/\\bARM64\\b/g"
2628
- "/\\b(CHANGELOG|Changelog)\\b/g"

.zizmor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ rules:
2626

2727
# Allow the use of the ossf/scorecard-action
2828
- ossf/scorecard-action
29+
30+
# Allow the use of the official Codecov Action
31+
- codecov/codecov-action

0 commit comments

Comments
 (0)