Skip to content

Commit

Permalink
added pre commit yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dyldonahue committed Sep 4, 2024
1 parent e4da055 commit da795d6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.0 # Specify the version of clang-format you want to use
hooks:
- id: clang-format
name: Apply clang-format
description: Run clang-format to check and fix C/C++ files
types: [c, c++]
files: \.(c|h|cpp|hpp|cc|cxx|hxx)$
args:
- --style=file
- --config=../Embedded-Base/clang-format
exclude: |
^(?!.*Embedded-Base/\.clang-format-ignore).*$
additional_dependencies: []

- repo: local
hooks:
- id: clang_restage
name: Restage formatted files
entry: clang_restage
language: system
pass_filenames: false
always_run: true
stages: [commit]
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Cerberus
#Cerberus
FreeRTOS Application that runs on MPU22A

## Setting up Docker Environment
> For initial installation and more info, visit here: https://nerdocs.atlassian.net/wiki/spaces/NER/pages/108888108/Setting+Up+STM32+Dev+Env
##Setting up Environment
> For initial installation and more info,
visit here : https
: // nerdocs.atlassian.net/wiki/spaces/NER/pages/524451844/2024+Firmware+Onboarding+Master

```
# TLDR:
# Pull Container:
docker compose pull
After clone,
run :

# Run Container
docker compose run --rm ner-gcc-arm
``` precommit install
```


before attempting to make a commit

0 comments on commit da795d6

Please sign in to comment.