]> git.apps.os.sepia.ceph.com Git - linux-firmware.git/commitdiff
Add pre-commit hooks and codespell template
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 29 Aug 2023 22:00:06 +0000 (17:00 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Tue, 29 Aug 2023 22:02:23 +0000 (17:02 -0500)
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
.codespell.cfg [new file with mode: 0644]
.gitignore [new file with mode: 0644]
.pre-commit-config.yaml [new file with mode: 0644]
check_whence.py

diff --git a/.codespell.cfg b/.codespell.cfg
new file mode 100644 (file)
index 0000000..52e86fc
--- /dev/null
@@ -0,0 +1,4 @@
+[codespell]
+builtin = clear,informal,en-GB_to_en-US
+skip = .git,carl9170fw,licence
+ignore-words-list = fils
diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..fcf54f4
--- /dev/null
@@ -0,0 +1 @@
+debian/
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644 (file)
index 0000000..6360992
--- /dev/null
@@ -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
index bf14aed646559b27380487d47ace1a6730dfc3c0..4199b9037925bd57b53cf97a5585ed4c65aefa25 100755 (executable)
@@ -72,6 +72,9 @@ def main():
     links_list = list(list_links_list())
     known_files = set(name for name in whence_list if not name.endswith("/")) | set(
         [
+            ".gitignore",
+            ".codespell.cfg",
+            ".pre-commit-config.yaml",
             "check_whence.py",
             "configure",
             "Makefile",