aboutsummaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2023-08-29 17:00:06 -0500
committerMario Limonciello <mario.limonciello@amd.com>2023-08-29 17:02:23 -0500
commitc442a5002c8311dc512a844e6c0335270db1e5f3 (patch)
treedab0d0ad2955f214c9bfe4382a3ed222f6fb9e76 /.pre-commit-config.yaml
parent27fb2f63684944a6ed5a7e5356471968bb2b282d (diff)
downloadfirmware-c442a5002c8311dc512a844e6c0335270db1e5f3.tar.gz
Add pre-commit hooks and codespell template
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 00000000..63609924
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,26 @@
+default_stages: [commit]
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.0.1
+ hooks:
+ - id: check-executables-have-shebangs
+ - id: forbid-new-submodules
+ - id: check-yaml
+ - id: check-symlinks
+ - id: destroyed-symlinks
+- repo: https://github.com/ambv/black
+ rev: 22.6.0
+ hooks:
+ - id: black
+- repo: https://github.com/igorshubovych/markdownlint-cli
+ rev: v0.33.0
+ hooks:
+ - id: markdownlint
+ args: ['--fix']
+- repo: local
+ hooks:
+ - id: check-whence
+ name: Check whence
+ files: 'WHENCE'
+ language: script
+ entry: ./check_whence.py