Skip to content

Commit 40c1cdc

Browse files
authored
chore: update pre-commit hooks (#1583)
1. Decouple `pyright` version from `uv.lock` file 2. Update asyncapi check file to a more maintained project 3. Update all pre-commit hooks 4. Use docker images instead of raw builds to make it easier to work on dls workstations
1 parent 0ea80d0 commit 40c1cdc

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/_tox.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ jobs:
2121
run: helm plugin install https://github.com/losisin/helm-values-schema-json.git --version 2.3.1
2222

2323
- name: Run tox
24+
env:
25+
# To allow pyright version to be latest and not decided by the uv.lock
26+
PYRIGHT_PYTHON_FORCE_VERSION: latest
2427
run: uv run --locked tox -e ${{ inputs.tox }}

.github/workflows/asyncapi.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- main
99
tags:
10-
- '*'
10+
- "*"
1111
pull_request:
1212
merge_group:
1313
types: [checks_requested]
@@ -17,8 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2121
- name: check asyncapi.yaml file
22-
uses: WaleedAshraf/asyncapi-github-action@d31f1627ac7c24132e7c4e4b89948d43b619685a # v0.0.10
22+
uses: asyncapi/cli@fb73ff3a429c1bc6a14c1b89f12601288677b9fa # v6.0.2
2323
with:
24+
command: validate
2425
filepath: "./docs/reference/asyncapi.yaml"

prek.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,32 @@ hooks = [
1313

1414
[[repos]]
1515
repo = "https://github.com/astral-sh/ruff-pre-commit"
16-
rev = "v0.15.1"
16+
rev = "v0.15.20"
1717
hooks = [
1818
{ id = "ruff-check", args = ["--fix"] },
1919
{ id = "ruff-format" },
2020
]
2121

2222
[[repos]]
2323
repo = "https://github.com/astral-sh/uv-pre-commit"
24-
rev = "0.10.2"
24+
rev = "0.11.27"
2525
hooks = [
2626
{ id = "uv-sync", args = [] },
2727
]
2828

2929
[[repos]]
3030
repo = "https://github.com/norwoodj/helm-docs"
3131
rev = "v1.14.2"
32-
hooks = [{ id = "helm-docs-built", args = ["--chart-search-root=helm"] }]
32+
hooks = [{ id = "helm-docs-container", args = ["--chart-search-root=helm"] }]
3333

3434
[[repos]]
3535
repo = "https://github.com/losisin/helm-values-schema-json"
36-
rev = "v2.3.1"
36+
rev = "v2.5.0"
3737
hooks = [
3838
{ id = "helm-schema", args = ["--config", "helm/blueapi/.schema.yaml"] }
3939
]
4040

4141
[[repos]]
4242
repo = "https://github.com/gitleaks/gitleaks"
43-
rev = "v8.28.0"
44-
hooks = [{ id = "gitleaks" }]
43+
rev = "v8.30.1"
44+
hooks = [{ id = "gitleaks-docker" }]

0 commit comments

Comments
 (0)