mirror of
https://github.com/CLIUtils/CLI11.git
synced 2026-01-19 04:52:08 +00:00
chore: update style checking
This commit is contained in:
committed by
Henry Schreiner
parent
ac74dac25c
commit
05586a9b71
6
.cmake-format.yaml
Normal file
6
.cmake-format.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
format:
|
||||||
|
line_width: 99
|
||||||
|
|
||||||
|
# Causes a few issues - can be solved later, possibly.
|
||||||
|
markup:
|
||||||
|
enable_markup: false
|
||||||
@@ -1,20 +1,26 @@
|
|||||||
|
ci:
|
||||||
|
autoupdate_commit_msg: "chore(deps): pre-commit.ci autoupdate"
|
||||||
|
skip:
|
||||||
|
- docker-clang-format
|
||||||
|
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 20.8b1
|
rev: 21.6b0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.4.0
|
rev: v4.0.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: mixed-line-ending
|
|
||||||
- id: trailing-whitespace
|
|
||||||
- id: check-merge-conflict
|
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
|
- id: check-merge-conflict
|
||||||
- id: check-symlinks
|
- id: check-symlinks
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: mixed-line-ending
|
||||||
|
- id: trailing-whitespace
|
||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
@@ -27,3 +33,9 @@ repos:
|
|||||||
args:
|
args:
|
||||||
- -style=file
|
- -style=file
|
||||||
- -i
|
- -i
|
||||||
|
|
||||||
|
- repo: https://github.com/cheshirekow/cmake-format-precommit
|
||||||
|
rev: v0.6.13
|
||||||
|
hooks:
|
||||||
|
- id: cmake-format
|
||||||
|
additional_dependencies: [pyyaml]
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
|
|
||||||
repos:
|
|
||||||
- repo: https://github.com/psf/black
|
|
||||||
rev: 19.3b0
|
|
||||||
hooks:
|
|
||||||
- id: black
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
||||||
rev: v2.3.0
|
|
||||||
hooks:
|
|
||||||
- id: check-added-large-files
|
|
||||||
- id: mixed-line-ending
|
|
||||||
- id: trailing-whitespace
|
|
||||||
- id: check-merge-conflict
|
|
||||||
- id: check-case-conflict
|
|
||||||
- id: check-symlinks
|
|
||||||
- id: check-yaml
|
|
||||||
- repo: local
|
|
||||||
hooks:
|
|
||||||
- id: clang-format
|
|
||||||
name: Clang Format
|
|
||||||
language: system
|
|
||||||
types:
|
|
||||||
- c++
|
|
||||||
entry: clang-format
|
|
||||||
args:
|
|
||||||
- -style=file
|
|
||||||
- -i
|
|
||||||
Reference in New Issue
Block a user