aboutsummaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
authorJosh Boyer <jwboyer@redhat.com>2023-08-30 17:57:37 +0000
committerJosh Boyer <jwboyer@redhat.com>2023-08-30 17:57:37 +0000
commit5ebb5914a3b95be1dab4f058d073bd75afcdd0f2 (patch)
treebafa1c45d00e7478c5aed271a83c7a89495a8782 /.pre-commit-config.yaml
parent8e1fe1bd719622ecfa9e8749f6936ab89cb88f3f (diff)
parent408eb34a782bae08f48eac22f5d76026ae725146 (diff)
Merge branch 'mlimonci/update-ci' into 'main'
Some improvements for hosting at gitlab.com See merge request kernel-firmware/linux-firmware!1
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