-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1.04 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-yaml
args:
- "--allow-multiple-documents"
additional_dependencies: [ ruamel_yaml ]
- id: end-of-file-fixer
exclude: '^(.+\.svg|HpSetup.txt)$'
- id: trailing-whitespace
exclude: '^.+\.nix$'
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-vcs-permalinks
- id: mixed-line-ending
exclude: '^(HpSetup.txt)$'
- id: check-json
- id: pretty-format-json
args:
- "--autofix"
- repo: https://github.com/kamadorueda/alejandra
rev: 3.1.0
hooks:
- id: alejandra-system
- repo: https://github.com/astro/deadnix
rev: v1.3.0
hooks:
- id: deadnix
# Disabled due to breaking updates
# TODO: revert to main project when this is merged
# https://github.com/oppiliappan/statix/pull/81
# - repo: https://github.com/Matthieu-LAURENT39/statix/
# rev: pre-commit
# hooks:
# - id: statix-fix