mirror of
https://git.proxmox.com/git/mirror_linux-firmware
synced 2025-10-04 20:30:40 +00:00
Add pre-commit hooks and codespell template
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
This commit is contained in:
parent
27fb2f6368
commit
c442a5002c
4
.codespell.cfg
Normal file
4
.codespell.cfg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[codespell]
|
||||||
|
builtin = clear,informal,en-GB_to_en-US
|
||||||
|
skip = .git,carl9170fw,licence
|
||||||
|
ignore-words-list = fils
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
debian/
|
26
.pre-commit-config.yaml
Normal file
26
.pre-commit-config.yaml
Normal file
@ -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
|
@ -72,6 +72,9 @@ def main():
|
|||||||
links_list = list(list_links_list())
|
links_list = list(list_links_list())
|
||||||
known_files = set(name for name in whence_list if not name.endswith("/")) | set(
|
known_files = set(name for name in whence_list if not name.endswith("/")) | set(
|
||||||
[
|
[
|
||||||
|
".gitignore",
|
||||||
|
".codespell.cfg",
|
||||||
|
".pre-commit-config.yaml",
|
||||||
"check_whence.py",
|
"check_whence.py",
|
||||||
"configure",
|
"configure",
|
||||||
"Makefile",
|
"Makefile",
|
||||||
|
Loading…
Reference in New Issue
Block a user