remove .gbs.conf because we don't trace remote git any more
[platform/upstream/libxkbcommon.git] / .pre-commit-config.yaml
1 # See https://pre-commit.com for more information
2 # See https://pre-commit.com/hooks.html for more hooks
3 repos:
4 - repo: https://github.com/pre-commit/pre-commit-hooks
5   rev: v4.4.0
6   hooks:
7   - id: trailing-whitespace
8   - id: end-of-file-fixer
9   - id: check-yaml
10   - id: check-added-large-files
11 - repo: https://github.com/psf/black
12   rev: 23.9.1
13   hooks:
14   - id: black
15     args: ['--check', '--diff', '.']
16 - repo: https://github.com/charliermarsh/ruff-pre-commit
17   rev: v0.0.291
18   hooks:
19   - id: ruff
20     # ambiguous-variable-name (E741), line-too-long (E501)
21     args: ['--ignore=E741,E501', '.']
22 # [TODO] C linter/formatter
23 # Note: There is an old config file for uncrustify (https://uncrustify.sourceforge.net)
24 # in the repo, but we may want to migrate to other modern style.
25 # - repo: https://github.com/pre-commit/mirrors-clang-format
26 #   rev: v16.0.6
27 #   hooks:
28 #   - id: clang-format