mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 02:10:07 +01:00
This *mostly* resembles our current coding style, at least to the extent possible with clang-format. There are a few oddities but they're not worth fighting over (for now) and the most egregious violations have been addressed by shuffling things around or just disabling clang-format in the previous commits. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1246>
31 lines
853 B
YAML
31 lines
853 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: no-commit-to-branch
|
|
args: ['--branch', 'main']
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.8.1
|
|
hooks:
|
|
- id: ruff
|
|
args: ['--ignore=E741,E501', '--extend-exclude=subprojects', '.']
|
|
- id: ruff-format
|
|
args: ['--check', '--diff']
|
|
- repo: https://gitlab.freedesktop.org/freedesktop/ci-templates.git
|
|
rev: e195d80f35b45cc73668be3767b923fd76c70ed5
|
|
hooks:
|
|
- id: check-commits
|
|
- id: generate-template
|
|
- repo: local
|
|
hooks:
|
|
- id: run-sed-script
|
|
name: Check for whitespace errors
|
|
entry: ./.gitlab-ci/whitespace-check.py
|
|
language: system
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
rev: v20.1.6
|
|
hooks:
|
|
- id: clang-format
|
|
types_or: [c]
|