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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
*.sqlite
.env
*.db-journal
node_modules/
.cargo/
52 changes: 52 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args:
- feat
- fix
- chore
- test
- doc
- refactor
- perf
- ci
- style
- revert

- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
language: system
entry: cargo fmt --all -- --check
pass_filenames: false
always_run: true
priority: 0

- id: cargo-machete
name: cargo machete
language: system
entry: cargo machete
pass_filenames: false
always_run: true
priority: 0

- id: cargo-clippy
name: cargo clippy
language: system
entry: cargo clippy --all-targets -- -W clippy::all -W clippy::pedantic -D warnings
pass_filenames: false
always_run: true
priority: 1

- id: sem-diff
name: sem diff (semantic changes)
language: system
entry: bash -c 'sem diff --staged --file-exts .rs || true'
pass_filenames: false
always_run: true
verbose: true
priority: 2
Loading
Loading