Fix .gitignore and CMakeList.txt
This commit is contained in:
parent
3cf387026e
commit
8bc863b648
5 changed files with 2367 additions and 6 deletions
31
.pre-commit-config.yaml
Normal file
31
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
exclude: '(?x)^(
|
||||
libs/.* |
|
||||
hardware/.* |
|
||||
.*\.md |
|
||||
managed_components/.*
|
||||
)$'
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
hooks:
|
||||
- id: check-added-large-files # prevents giant files from being committed.
|
||||
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
|
||||
- id: check-merge-conflict # checks for files that contain merge conflict strings.
|
||||
- id: check-yaml # checks yaml files for parseable syntax.
|
||||
- id: detect-private-key # detects the presence of private keys.
|
||||
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
|
||||
- id: fix-byte-order-marker # removes utf-8 byte order marker.
|
||||
- id: mixed-line-ending # replaces or checks mixed line ending.
|
||||
- id: requirements-txt-fixer # sorts entries in requirements.txt.
|
||||
- id: trailing-whitespace # trims trailing whitespace.
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: v17.0.6
|
||||
hooks:
|
||||
- id: clang-format
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 24.10.0
|
||||
hooks:
|
||||
- id: black
|
Loading…
Add table
Add a link
Reference in a new issue