From 727c89ad34f50cfc13e059947238fd68548041cc Mon Sep 17 00:00:00 2001 From: Dylan Donahue <98500199+dyldonahue@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:32:54 -0400 Subject: [PATCH] Feature/clang (#114) --- .pre-commit-config.yaml | 10 ++++++++++ README.md | 14 ++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..3cbad36 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +repos: + - repo: local + hooks: + - id: clang_restage + name: Restage formatted files + entry: clang_restage + language: system + pass_filenames: false + always_run: true + stages: [pre-commit] diff --git a/README.md b/README.md index 4ac0d19..8b61098 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,12 @@ # ShepherdBMS2 Our from-scratch Battery Management System application, v2. -## 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 entering the ner-venv but before your first commit, run: -# Run Container -docker compose run --rm ner-gcc-arm ``` +pre-commit install +``` +