Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: pre-commit
name: prek

on:
pull_request:
Expand All @@ -11,19 +11,17 @@ env:
# Keep in sync with across other repos like operator-rs and operator-templating
RUST_TOOLCHAIN_VERSION: "nightly-2026-08-23"
HADOLINT_VERSION: "v2.14.0"
PYTHON_VERSION: "3.14"

jobs:
pre-commit:
prek:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
fetch-depth: 0

- uses: stackabletech/actions/run-pre-commit@d0a8db3ba80e974b872c09cb5311f04e0e78582e # v0.16.1
- uses: stackabletech/actions/run-prek@0fe048f952bee522474903a925ea48dc706a0bb4 # v0.17.5
with:
python-version: ${{ env.PYTHON_VERSION }}
rust: ${{ env.RUST_TOOLCHAIN_VERSION }}
hadolint: ${{ env.HADOLINT_VERSION }}
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,6 @@ repos:
stages: [pre-commit, pre-merge-commit, manual]
pass_filenames: false

- id: cargo-test
name: cargo-test
language: system
entry: cargo test
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: \.rs$|Cargo\.(toml|lock)

- id: cargo-rustfmt
name: cargo-rustfmt
language: system
Expand Down
4 changes: 3 additions & 1 deletion .scripts/update_readme_badges.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

set -euo pipefail

RELATIVE_PATH=$(realpath -s --relative-to "$PWD" "$0")

# START: Configurables
AUTO_GENERATED_COMMENT="autogenerated by $0"
AUTO_GENERATED_COMMENT="autogenerated by $RELATIVE_PATH"
GITHUB_ACTION_URL_PREFIX="https://github.com/stackabletech/docker-images/actions/workflows"
COLS=4
# END: Configurables
Expand Down
17 changes: 17 additions & 0 deletions rust/boil/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
fail_fast: false
exclude: \.patch$

default_language_version:
node: system

repos:
- repo: local
hooks:
- id: cargo-test
name: cargo-test
language: system
entry: cargo test --package boil
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: .*\.rs$|Cargo\.toml
17 changes: 17 additions & 0 deletions rust/patchable/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
fail_fast: false
exclude: \.patch$

default_language_version:
node: system

repos:
- repo: local
hooks:
- id: cargo-test
name: cargo-test
language: system
entry: cargo test --package patchable
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: .*\.rs$|Cargo\.toml