diff options
| author | hathach <[email protected]> | 2023-03-15 17:40:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-03-15 19:30:35 +0700 |
| commit | ffa56a1beb724397e434e5e74e2a7b1d4583acd8 (patch) | |
| tree | 8b16e26d9885f5e8b1ada7b4376b1de281f22bd5 | |
| parent | d9a9dc5ac0a9679403a75dbe3a32c4d4678998e6 (diff) | |
add pre-commit yaml
| -rw-r--r-- | .pre-commit-config.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..5a61f5282 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò +# +# SPDX-License-Identifier: Unlicense + +repos: +- repo: local + hooks: + - id: codespell + name: codespell + entry: codespell + types_or: [c, header] + language: system + + - id: unit-test + name: unit-test + files: ^(src/|test/unit-test/) + entry: sh -c "cd test/unit-test && ceedling test:all" + pass_filenames: false + types_or: [c, header] + language: system |
