Skip to content

Add gaurdian signature #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jun 4, 2025
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
38 changes: 38 additions & 0 deletions .github/workflows/ci-pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Pre-commit checks

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
# Need to grab the history of the PR
fetch-depth: 0

- name: Set up Python (for pre-commit)
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install pre-commit
run: pip install pre-commit

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.87.0
components: clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2024-12-03
components: rustfmt

- name: Run pre-commit on all files
run: pre-commit run --all-files
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
.secret
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: local
hooks:
# Hooks for workspace
- id: cargo-fmt-workspace
name: Cargo format for workspace
language: "rust"
entry: cargo +nightly-2024-12-03 fmt --manifest-path ./Cargo.toml --all -- --config-path rustfmt.toml
pass_filenames: false
types_or: ["rust", "cargo", "cargo-lock"]
files: .
- id: cargo-clippy-workspace
name: Cargo clippy for workspace
language: "rust"
entry: cargo +1.87.0 clippy --manifest-path ./Cargo.toml --tests -- -D warnings
pass_filenames: false
types_or: ["rust", "cargo", "cargo-lock"]
files: .
- id: cargo-test-workspace
name: Cargo test for workspace
language: "rust"
entry: cargo +1.87.0 test --manifest-path ./Cargo.toml
pass_filenames: false
types_or: ["rust", "cargo", "cargo-lock"]
files: .
Loading
Loading