85 lines
3.0 KiB
YAML
85 lines
3.0 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: fmt-2022
|
|
name: Rust fmt (2022)
|
|
entry: sh -c 'cd 2022 && cargo fmt --all'
|
|
files: ^2022/
|
|
types: [rust]
|
|
pass_filenames: false
|
|
language: system
|
|
- id: clippy-2022
|
|
name: Rust clippy (2022)
|
|
entry: sh -c 'cd 2022 && cargo clippy --lib --all-features --tests --'
|
|
files: ^2022/.*\.(rs|toml)$
|
|
pass_filenames: false
|
|
language: system
|
|
- id: fmt-2023
|
|
name: Rust fmt (2023)
|
|
entry: sh -c 'cd 2023 && cargo fmt --all'
|
|
files: ^2023/
|
|
types: [rust]
|
|
pass_filenames: false
|
|
language: system
|
|
- id: clippy-2023
|
|
name: Rust clippy (2023)
|
|
entry: sh -c 'cd 2023 && cargo clippy --lib --all-features --tests --'
|
|
files: ^2023/.*\.(rs|toml)$
|
|
pass_filenames: false
|
|
language: system
|
|
- id: fmt-2024
|
|
name: Rust fmt (2024)
|
|
entry: sh -c 'cd 2024 && cargo fmt --all'
|
|
files: ^2024/
|
|
types: [rust]
|
|
pass_filenames: false
|
|
language: system
|
|
- id: clippy-2024
|
|
name: Rust clippy (2024)
|
|
entry: sh -c 'cd 2024 && cargo clippy --lib --all-features --tests -- -D warnings'
|
|
files: ^2024/.*\.(rs|toml)$
|
|
pass_filenames: false
|
|
language: system
|
|
- id: fmt-2025
|
|
name: Rust fmt (2025)
|
|
entry: sh -c 'cd 2025 && cargo fmt --all'
|
|
files: ^2025/
|
|
types: [rust]
|
|
pass_filenames: false
|
|
language: system
|
|
- id: clippy-2025
|
|
name: Rust clippy (2025)
|
|
entry: sh -c 'cd 2025 && cargo clippy --lib --all-features --tests --'
|
|
files: ^2025/.*\.(rs|toml)$
|
|
pass_filenames: false
|
|
language: system
|
|
- id: fmt-2026
|
|
name: Rust fmt (2026)
|
|
entry: sh -c 'cd 2026 && cargo fmt --all'
|
|
files: ^2026/
|
|
types: [rust]
|
|
pass_filenames: false
|
|
language: system
|
|
- id: clippy-2026
|
|
name: Rust clippy (2026)
|
|
entry: sh -c 'cd 2026 && cargo clippy --lib --all-features --tests --'
|
|
files: ^2026/.*\.(rs|toml)$
|
|
pass_filenames: false
|
|
language: system
|
|
- repo: https://github.com/LiquidFun/aoc_tiles
|
|
rev: 0.7.2
|
|
hooks:
|
|
- id: aoc-tiles
|
|
language: system
|
|
# 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
|
|
- --tile-width-px=200
|
|
# - --language-sorting=jl,kt,py,rs
|
|
# - --exclude-patterns=2021/*/*.apl,2021/*/*.py,2021/*/*.cpp
|