aoc2024/.pre-commit-config.yaml
Keenan Tims 003bc3212d
All checks were successful
test / AoC 2024 (push) Successful in 2m55s
pre-commit: check clippies and format in pre-commit to avoid CI fail
2024-12-13 23:51:50 -08:00

31 lines
1.2 KiB
YAML

repos:
- repo: local
hooks:
- id: rust-linting
name: Rust linting
entry: cargo fmt --all --
pass_filenames: true
types: [file, rust]
language: system
- id: rust-clippy
name: Rust clippy
entry: cargo clippy --lib --all-features --tests -- -D warnings
pass_filenames: false
types: [file, rust]
language: system
- repo: https://github.com/LiquidFun/aoc_tiles
rev: 0.6.2
hooks:
- id: aoc-tiles
# Optionally use these arguments. Auto add tiles to git adds the tiles to git,
# possibly amends your commit by creating the tile images and updating the README.
# Language sorting shows the preference of the order of the languages to use.
# Exclude paterns are globs which can be used to exclude files when creating
# the tiles. See the customization section in the README for more flags.
# Simply remove the comments (#) below for args and the flags you want.
args:
- --auto-add-tiles-to-git=amend
- --overwrite-year=2024
# - --language-sorting=jl,kt,py,rs
# - --exclude-patterns=2021/*/*.apl,2021/*/*.py,2021/*/*.cpp