forked from kofal.net/zmk
refactor: Add more checks to pre-commit
Updated existing pre-commit hooks and added some new hooks: - Remove trailing whitespace - Ensure every non-empty file ends with a new line - Check YAML file validity - Prevent adding large files - Ensure any scripts with shebangs are executable Added a GitHub action to run pre-commit on every commit. Removed any existing actions which duplicate pre-commit. Ran pre-commit on the codebase.
This commit is contained in:
committed by
Pete Johanson
parent
9c4f1e02d1
commit
32ae776c42
@@ -22,8 +22,8 @@
|
||||
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
||||
* | Z | X | C | V | B | | 2 | | 3 | | N | M | , | . | / |
|
||||
* `----------------------------------' `-----' `-----' `----------------------------------'
|
||||
* ,-----. ,--------------------. ,--------------------. ,-----.
|
||||
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
||||
* ,-----. ,--------------------. ,--------------------. ,-----.
|
||||
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
||||
* `-----' `--------------------' `--------------------' `-----'
|
||||
*/
|
||||
bindings = <
|
||||
@@ -46,7 +46,7 @@
|
||||
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
||||
* | | | INS | | | | 2 | | 3 | | 0 | 1 | 2 | 3 | * |
|
||||
* `----------------------------------' `-----' `-----' `----------------------------------'
|
||||
* ,-----. ,--------------------. ,--------------------. ,-----.
|
||||
* ,-----. ,--------------------. ,--------------------. ,-----.
|
||||
* | 1 | | DEL | SPACE | MO(3)| | ESC | BS | ENTER | | 4 |
|
||||
* `-----' `--------------------' `--------------------' `-----'
|
||||
*/
|
||||
@@ -70,7 +70,7 @@
|
||||
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
||||
* | $ | | { | } | & | | 2 | | 3 | | | | | | |
|
||||
* `----------------------------------' `-----' `-----' `----------------------------------'
|
||||
* ,-----. ,--------------------. ,--------------------. ,-----.
|
||||
* ,-----. ,--------------------. ,--------------------. ,-----.
|
||||
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
||||
* `-----' `--------------------' `--------------------' `-----'
|
||||
*/
|
||||
@@ -94,7 +94,7 @@
|
||||
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
||||
* | | | | | | | 2 | | 3 | | F10 | F1 | F2 | F3 | F13 |
|
||||
* `----------------------------------' `-----' `-----' `----------------------------------'
|
||||
* ,-----. ,--------------------. ,--------------------. ,-----.
|
||||
* ,-----. ,--------------------. ,--------------------. ,-----.
|
||||
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
||||
* `-----' `--------------------' `--------------------' `-----'
|
||||
*/
|
||||
@@ -106,7 +106,7 @@
|
||||
>;
|
||||
|
||||
sensor-bindings = <&inc_dec_kp PAGE_UP PAGE_DOWN &inc_dec_kp TAB LS(TAB)>;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user