serene/.pre-commit-config.yaml

47 lines
1.2 KiB
YAML
Raw Normal View History

2022-06-11 18:33:35 +01:00
# Apply to all files without commiting:
# pre-commit run --all-files
# Update this file:
# pre-commit autoupdate
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
2022-06-11 18:33:35 +01:00
hooks:
2022-06-11 18:44:46 +01:00
- id: check-added-large-files
- id: check-symlinks
2022-06-11 18:33:35 +01:00
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
2022-06-11 18:44:46 +01:00
- id: forbid-new-submodules
2022-06-11 18:33:35 +01:00
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
2022-06-12 22:34:12 +01:00
2023-07-25 22:23:37 +01:00
# - repo: local
# hooks:
# - id: include-fixer
# name: Fixing 'serene' includes
# language: script
# entry: ./scripts/include-fixer.sh
# files: ".*.(h|cpp)"
2022-06-12 22:34:12 +01:00
- repo: local
hooks:
2023-07-25 22:23:37 +01:00
- id: include-fixer py
name: Fixing local includes
language: python
entry: ./scripts/include-fixer.py
2022-06-12 22:34:12 +01:00
files: ".*.(h|cpp)"
2022-06-11 18:33:35 +01:00
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
2022-06-11 18:33:35 +01:00
hooks:
- id: clang-format
- id: cppcheck
args: ['--project=compile_commands.json']
- repo: https://github.com/detailyang/pre-commit-shell
rev: 1.0.5
2022-06-11 18:44:46 +01:00
hooks:
- id: shell-lint
args: ['-x']