forked from pacstall/pacstall-programs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (39 loc) · 1.19 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
40
41
ci:
skip: []
exclude: '^.*\.(patch)$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
types: []
args: ["-o", "all", "-e", "2148", "-e", "SC2033", "-e", "SC2032", "-e", "SC2034", "-e", "SC2154", "-e", "SC2312", "-e", "SC2164", "-e", "SC2143", "-e", "SC2103"]
files: '^.*\.(pacscript|sh)$'
- repo: https://github.com/maxwinterstein/shfmt-py
rev: v3.7.0.1
hooks:
- id: shfmt
args: ["-i", "2", "-bn", "-ci", "-sr", "-s"]
types: []
exclude: |
(?x)^(
packages/emacs/emacs.pacscript|
packages/emacs-git/emacs-git.pacscript|
)$
files: '^.*\.(pacscript|sh)$'
- repo: local
hooks:
- id: update-packagelist
name: update packagelist file
language: system
entry: bash -c 'LC_COLLATE=C ls -1 packages/ > packagelist'
# vim:set ft=yaml ts=2 sw=2 et: