File: .pre-commit-config.yaml

package info (click to toggle)
podman 5.4.2%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 23,124 kB
  • sloc: sh: 6,119; perl: 2,710; python: 2,258; ansic: 1,556; makefile: 1,022; xml: 121; ruby: 42; awk: 12; csh: 8
file content (28 lines) | stat: -rw-r--r-- 1,333 bytes parent folder | download
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
---
exclude: ^vendor/|^test/tools/vendor/
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks.git
    rev: v3.4.0
    hooks:
      # `buildah-tests.diff` is generated by 'git format-patch' and includes
      # trailing whitespace as part of its format. We can work around that,
      # but unfortunately the buildah repo has some files with tabs, which
      # git-diff formats as '[+/-]<space><tab>', which these hooks choke on.
      # `contrib/systemd/user` and `test/python/requirements.txt` are symlinks
      # but for some reason, on windows, pre-commit consider it as a regular
      # file and tries to fix it. Just disable checks on these files as a
      # special case.
      - id: end-of-file-fixer
        exclude: test/buildah-bud/buildah-tests.diff|contrib/systemd/user|test/python/requirements.txt
      - id: trailing-whitespace
        exclude: test/buildah-bud/buildah-tests.diff|test/e2e/quadlet/remap-keep-id2.container|test/e2e/quadlet/line-continuation-whitespace.container
      - id: mixed-line-ending
      - id: check-byte-order-marker
      - id: check-executables-have-shebangs
      - id: check-merge-conflict
      - id: check-yaml
  - repo: https://github.com/codespell-project/codespell
    # Configuration for codespell is in .codespellrc
    rev: v2.3.0
    hooks:
    - id: codespell