mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 09:20:29 +01:00
This ensures a few things are correct before we commit and/or push, making life a bit easier for both our contributors and our maintainers since some things should no longer end up in the MRs. Activate via: $ pre-commit install $ pre-commit install --hook-type pre-push The latter is required for the ci-templates hooks which are pre-push only.
23 lines
616 B
YAML
23 lines
616 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.3.0
|
|
hooks:
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: no-commit-to-branch
|
|
args: ['--branch', 'main']
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.10.0
|
|
hooks:
|
|
- id: black
|
|
args: ['--check', '--diff', '.']
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
rev: v0.0.254
|
|
hooks:
|
|
- id: ruff
|
|
args: ['--ignore=E741,E501', '.']
|
|
- repo: https://gitlab.freedesktop.org/freedesktop/ci-templates.git
|
|
rev: 7402203527f61d6473d55ad701172d1606508c52
|
|
hooks:
|
|
- id: check-commits
|
|
- id: generate-template
|