precommit: Add more checks

This commit is contained in:
Tomas Rezucha 2022-09-07 15:05:36 +02:00
parent b6313b2183
commit b0b65cbdb9
3 changed files with 806 additions and 790 deletions

View File

@ -4,3 +4,19 @@ repos:
hooks:
- id: astyle_py
args: ['--style=otbs', '--attach-namespaces', '--attach-classes', '--indent=spaces=4', '--convert-tabs', '--align-pointer=name', '--align-reference=name', '--keep-one-line-statements', '--pad-header', '--pad-oper']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
files: ^usb/
types_or: [c, c++]
- id: end-of-file-fixer
files: ^usb/
types_or: [c, c++]
- id: check-merge-conflict
- id: mixed-line-ending
files: ^usb/ # temporary USB only
types_or: [c, c++]
args: ['--fix=lf']
description: Forces to replace line ending by the UNIX 'lf' character