From d176856326133e4022c7480b5362d802390fc310 Mon Sep 17 00:00:00 2001 From: fastium Date: Tue, 17 Dec 2024 16:44:11 +0100 Subject: [PATCH] ADD project folders to pre-commit --- .pre-commit-config.yaml | 46 ++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cace89e..94798a5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,24 +1,24 @@ -files: ^main.cpp +files: ^main.cpp | ^static_scheduling/ | ^static_scheduling_with_event/ | ^TESTS/ repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 - hooks: - - id: check-yaml - args: [--allow-multiple-documents] - - id: end-of-file-fixer - - id: trailing-whitespace -- repo: https://github.com/pre-commit/mirrors-clang-format - rev: 'v14.0.6' - hooks: - - id: clang-format -- repo: https://github.com/cpplint/cpplint - rev: '1.6.1' - hooks: - - id: cpplint -- repo: local - hooks: - - id: cppcheck - name: cppcheck - require_serial: true - entry: cppcheck --enable=all --suppress=missingInclude:* --inline-suppr -i mbed-os --std=c++14 --error-exitcode=1 - language: system \ No newline at end of file + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: check-yaml + args: [--allow-multiple-documents] + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: "v14.0.6" + hooks: + - id: clang-format + - repo: https://github.com/cpplint/cpplint + rev: "1.6.1" + hooks: + - id: cpplint + - repo: local + hooks: + - id: cppcheck + name: cppcheck + require_serial: true + entry: cppcheck --enable=all --suppress=missingInclude:* --inline-suppr -i mbed-os --std=c++14 --error-exitcode=1 + language: system