mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 03:15:48 -06:00
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
- id: check-case-conflict
|
|
- id: check-toml
|
|
- id: check-yaml
|
|
- id: forbid-submodules
|
|
- id: mixed-line-ending
|
|
|
|
- repo: https://github.com/compilerla/conventional-pre-commit
|
|
rev: v4.2.0
|
|
hooks:
|
|
- id: conventional-pre-commit
|
|
stages: [commit-msg]
|
|
args: []
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: cargo-fmt
|
|
name: cargo fmt
|
|
entry: cargo fmt --all --
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
|
|
- id: cargo-check
|
|
name: cargo check
|
|
entry: cargo check --all-targets
|
|
language: system
|
|
types_or: [rust, cargo, cargo-lock]
|
|
pass_filenames: false
|
|
|
|
- id: cargo-check-wasm
|
|
name: cargo check for wasm32-unknown-emscripten
|
|
entry: cargo check --all-targets --target=wasm32-unknown-emscripten
|
|
language: system
|
|
types_or: [rust, cargo, cargo-lock]
|
|
pass_filenames: false
|
|
|
|
- id: bump-version
|
|
name: bump version based on commit message
|
|
entry: python scripts/bump-version.py
|
|
language: system
|
|
stages: [commit-msg]
|
|
always_run: true
|
|
|
|
- id: tag-version
|
|
name: tag version based on commit message
|
|
entry: python scripts/tag-version.py
|
|
language: system
|
|
stages: [post-commit]
|
|
always_run: true
|