aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/tests/hold-tap/tap-unless-interrupted
diff options
context:
space:
mode:
authorJoel Spadin <[email protected]>2023-04-22 23:16:36 -0500
committerPete Johanson <[email protected]>2023-04-24 16:07:04 -0700
commit32ae776c42215d7302ab47787cbfb47298ccb532 (patch)
tree683b220ca15ec1ab8a7cd130ee86f2512c2b3432 /app/tests/hold-tap/tap-unless-interrupted
parent9c4f1e02d14e2903d7ec377fc3042bb704cc7253 (diff)
downloadzmk-32ae776c42215d7302ab47787cbfb47298ccb532.tar.gz
zmk-32ae776c42215d7302ab47787cbfb47298ccb532.zip
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.
Diffstat (limited to 'app/tests/hold-tap/tap-unless-interrupted')
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/1-dn-up/native_posix_64.keymap4
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/2-dn-timer-up/native_posix_64.keymap4
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/3a-moddn-dn-modup-up/native_posix_64.keymap2
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/3b-moddn-dn-modup-timer-up/native_posix_64.keymap2
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/3c-kcdn-dn-kcup-up/native_posix_64.keymap2
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/3d-kcdn-dn-kcup-timer-up/native_posix_64.keymap2
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/4a-dn-htdn-timer-htup-up/native_posix_64.keymap2
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/4a-dn-kcdn-timer-kcup-up/native_posix_64.keymap2
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/4b-dn-kcdn-kcup-timer-up/native_posix_64.keymap2
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/4c-dn-kcdn-kcup-up/native_posix_64.keymap2
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/5-quick-tap/native_posix_64.keymap6
-rw-r--r--app/tests/hold-tap/tap-unless-interrupted/6-global-quick-tap/1-basic/native_posix_64.keymap4
12 files changed, 17 insertions, 17 deletions
diff --git a/app/tests/hold-tap/tap-unless-interrupted/1-dn-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/1-dn-up/native_posix_64.keymap
index 040cdd3ee7..38c8668ca5 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/1-dn-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/1-dn-up/native_posix_64.keymap
@@ -5,7 +5,7 @@
&kscan {
events = <
- ZMK_MOCK_PRESS(0,0,10)
- ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_PRESS(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
>;
}; \ No newline at end of file
diff --git a/app/tests/hold-tap/tap-unless-interrupted/2-dn-timer-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/2-dn-timer-up/native_posix_64.keymap
index 11d033f40d..b5834e06d1 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/2-dn-timer-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/2-dn-timer-up/native_posix_64.keymap
@@ -5,7 +5,7 @@
&kscan {
events = <
- ZMK_MOCK_PRESS(0,0,500)
- ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_PRESS(0,0,500)
+ ZMK_MOCK_RELEASE(0,0,10)
>;
}; \ No newline at end of file
diff --git a/app/tests/hold-tap/tap-unless-interrupted/3a-moddn-dn-modup-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/3a-moddn-dn-modup-up/native_posix_64.keymap
index abb31b4b3a..a540353b0c 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/3a-moddn-dn-modup-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/3a-moddn-dn-modup-up/native_posix_64.keymap
@@ -8,6 +8,6 @@
ZMK_MOCK_PRESS(1,1,10) /*ctrl*/
ZMK_MOCK_PRESS(0,0,100) /*mt f-shift */
ZMK_MOCK_RELEASE(1,1,10)
- ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
>;
}; \ No newline at end of file
diff --git a/app/tests/hold-tap/tap-unless-interrupted/3b-moddn-dn-modup-timer-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/3b-moddn-dn-modup-timer-up/native_posix_64.keymap
index 38575e9a20..76bb2fa378 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/3b-moddn-dn-modup-timer-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/3b-moddn-dn-modup-timer-up/native_posix_64.keymap
@@ -9,6 +9,6 @@
ZMK_MOCK_PRESS(0,0,50) /*mt f-shift */
ZMK_MOCK_RELEASE(1,1,300)
/*timer*/
- ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
>;
}; \ No newline at end of file
diff --git a/app/tests/hold-tap/tap-unless-interrupted/3c-kcdn-dn-kcup-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/3c-kcdn-dn-kcup-up/native_posix_64.keymap
index 21baa447eb..882f33aa6a 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/3c-kcdn-dn-kcup-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/3c-kcdn-dn-kcup-up/native_posix_64.keymap
@@ -8,6 +8,6 @@
ZMK_MOCK_PRESS(1,0,10) /*d*/
ZMK_MOCK_PRESS(0,0,100) /*mt f-shift */
ZMK_MOCK_RELEASE(1,0,10)
- ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
>;
}; \ No newline at end of file
diff --git a/app/tests/hold-tap/tap-unless-interrupted/3d-kcdn-dn-kcup-timer-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/3d-kcdn-dn-kcup-timer-up/native_posix_64.keymap
index cd7ff384bf..0fc0b848c3 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/3d-kcdn-dn-kcup-timer-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/3d-kcdn-dn-kcup-timer-up/native_posix_64.keymap
@@ -8,6 +8,6 @@
ZMK_MOCK_PRESS(1,0,10) /* d */
ZMK_MOCK_PRESS(0,0,100) /* mt f-shift */
ZMK_MOCK_RELEASE(1,0,400)
- ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
>;
}; \ No newline at end of file
diff --git a/app/tests/hold-tap/tap-unless-interrupted/4a-dn-htdn-timer-htup-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/4a-dn-htdn-timer-htup-up/native_posix_64.keymap
index b84aa6265b..5d0fcbfb2e 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/4a-dn-htdn-timer-htup-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/4a-dn-htdn-timer-htup-up/native_posix_64.keymap
@@ -7,7 +7,7 @@
events = <
ZMK_MOCK_PRESS(0,0,200)
ZMK_MOCK_PRESS(0,1,200)
- /* timer fires */
+ /* timer fires */
ZMK_MOCK_RELEASE(0,1,10)
ZMK_MOCK_RELEASE(0,0,10)
>;
diff --git a/app/tests/hold-tap/tap-unless-interrupted/4a-dn-kcdn-timer-kcup-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/4a-dn-kcdn-timer-kcup-up/native_posix_64.keymap
index bdfaf9d3d9..fca60ba8ed 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/4a-dn-kcdn-timer-kcup-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/4a-dn-kcdn-timer-kcup-up/native_posix_64.keymap
@@ -7,7 +7,7 @@
events = <
ZMK_MOCK_PRESS(0,0,200)
ZMK_MOCK_PRESS(1,0,200)
- /* timer fires */
+ /* timer fires */
ZMK_MOCK_RELEASE(1,0,10)
ZMK_MOCK_RELEASE(0,0,10)
>;
diff --git a/app/tests/hold-tap/tap-unless-interrupted/4b-dn-kcdn-kcup-timer-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/4b-dn-kcdn-kcup-timer-up/native_posix_64.keymap
index c0fd1bd184..5d0af9ca1b 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/4b-dn-kcdn-kcup-timer-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/4b-dn-kcdn-kcup-timer-up/native_posix_64.keymap
@@ -8,7 +8,7 @@
ZMK_MOCK_PRESS(0,0,100)
ZMK_MOCK_PRESS(1,0,100)
ZMK_MOCK_RELEASE(1,0,200)
- /* timer fires */
+ /* timer fires */
ZMK_MOCK_RELEASE(0,0,10)
>;
}; \ No newline at end of file
diff --git a/app/tests/hold-tap/tap-unless-interrupted/4c-dn-kcdn-kcup-up/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/4c-dn-kcdn-kcup-up/native_posix_64.keymap
index 69c19676e7..6b1383523d 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/4c-dn-kcdn-kcup-up/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/4c-dn-kcdn-kcup-up/native_posix_64.keymap
@@ -9,6 +9,6 @@
ZMK_MOCK_PRESS(1,0,10)
ZMK_MOCK_RELEASE(1,0,10)
ZMK_MOCK_RELEASE(0,0,10)
- /* timer */
+ /* timer */
>;
}; \ No newline at end of file
diff --git a/app/tests/hold-tap/tap-unless-interrupted/5-quick-tap/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/5-quick-tap/native_posix_64.keymap
index 8f90ffadb4..d895df0231 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/5-quick-tap/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/5-quick-tap/native_posix_64.keymap
@@ -6,9 +6,9 @@
&kscan {
events = <
- ZMK_MOCK_PRESS(0,0,10)
- ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_PRESS(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
ZMK_MOCK_PRESS(0,0,400)
- ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
>;
}; \ No newline at end of file
diff --git a/app/tests/hold-tap/tap-unless-interrupted/6-global-quick-tap/1-basic/native_posix_64.keymap b/app/tests/hold-tap/tap-unless-interrupted/6-global-quick-tap/1-basic/native_posix_64.keymap
index 930760553a..9965c9b377 100644
--- a/app/tests/hold-tap/tap-unless-interrupted/6-global-quick-tap/1-basic/native_posix_64.keymap
+++ b/app/tests/hold-tap/tap-unless-interrupted/6-global-quick-tap/1-basic/native_posix_64.keymap
@@ -6,8 +6,8 @@
&kscan {
events = <
/* tap */
- ZMK_MOCK_PRESS(0,0,10)
- ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_PRESS(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
/* normal quick tap */
ZMK_MOCK_PRESS(0,0,400)
ZMK_MOCK_RELEASE(0,0,400)