mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
CI: Run pre-commit hooks
Signed-off-by: José Expósito <jose.exposito89@gmail.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1036>
This commit is contained in:
parent
7d849623d5
commit
ee9043d6b4
2 changed files with 28 additions and 0 deletions
|
|
@ -215,6 +215,20 @@ check-whitespace:
|
|||
- sed -i '/^$/N;/^\n$/D' $(git ls-files src/*.{h,c} tools/*.{h,c} udev/*.c)
|
||||
- git diff --exit-code || (echo "ERROR - Duplicated empty lines, please fix" && false)
|
||||
|
||||
#
|
||||
# pre-commit hooks
|
||||
#
|
||||
|
||||
pre-commit-hooks:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: sanity check
|
||||
script:
|
||||
- python3 -m venv venv
|
||||
- source venv/bin/activate
|
||||
- pip3 install pre-commit
|
||||
- pre-commit run --all-files || true
|
||||
- git diff --exit-code || (echo "ERROR - Code style errors found, please fix" && false)
|
||||
|
||||
#################################################################
|
||||
# #
|
||||
|
|
|
|||
|
|
@ -203,6 +203,20 @@ check-whitespace:
|
|||
- sed -i '/^$/N;/^\n$/D' $(git ls-files src/*.{h,c} tools/*.{h,c} udev/*.c)
|
||||
- git diff --exit-code || (echo "ERROR - Duplicated empty lines, please fix" && false)
|
||||
|
||||
#
|
||||
# pre-commit hooks
|
||||
#
|
||||
|
||||
pre-commit-hooks:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: sanity check
|
||||
script:
|
||||
- python3 -m venv venv
|
||||
- source venv/bin/activate
|
||||
- pip3 install pre-commit
|
||||
- pre-commit run --all-files || true
|
||||
- git diff --exit-code || (echo "ERROR - Code style errors found, please fix" && false)
|
||||
|
||||
#################################################################
|
||||
# #
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue