summarylogtreecommitdiffstats
path: root/.pre-commit-config.yaml
blob: 1322305dfbebb03c3e41bdddd19ddc36cfda47a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v3.1.0
  hooks:
  - id: trailing-whitespace
  - id: end-of-file-fixer
  - id: check-added-large-files
  - id: mixed-line-ending
- repo: local
  hooks:
  - id: makepkg
    name: makepkg
    pass_filenames: false
    always_run: true
    language: system
    entry: |
      sh -c '
        makepkg --printsrcinfo > .SRCINFO &&
        git add PKGBUILD .SRCINFO
      '