about summary refs log tree commit diff
path: root/.pre-commit-config.yaml
blob: 7ef2373e1788a8c6849f34fa3b065dc21a2989c3 (plain)
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
repos:
  - repo: local
    hooks:
      - id: nm-clang-format
        name: clang-format (CI version, container)
        entry: ./contrib/scripts/nm-code-format-container.sh -n
        language: script
        files: \.[ch]$
        require_serial: true
        exclude: |
          (?x)^(
            src/c-list/|
            src/c-rbtree/|
            src/c-siphash/|
            src/c-stdaux/|
            src/libnm-std-aux/unaligned(-fundamental)?\.h|
            src/libnm-systemd-core/src/|
            src/libnm-systemd-shared/src/|
            src/linux-headers/|
            src/n-acd/|
            src/n-dhcp4/
          )
      - id: nm-potfiles
        name: POTFILES.in consistency
        entry: src/tests/check-potfile-list.py
        language: script
        pass_filenames: false
        always_run: true