summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorErovia <erovia@users.noreply.github.com>2020-01-12 12:36:41 +0100
committerskullydazed <skullydazed@users.noreply.github.com>2020-02-15 15:19:03 -0800
commit3db41817e0aa72e1406e29a4fb5f82db0c2a6cf1 (patch)
tree7a23300edcf429f1b46ce8a481431f715dfeb7c4 /layouts
parent8eeab1112aa1ca7336f88867a9a2ab680ae94b53 (diff)
Code cleanup, use pathlib, use pytest keyboard
Clean up checks and logics that are unnecessary due to MILC updates. Use pathlib instead of os.path for readability. Use the 'pytest' keyboard for the tests. Add community layout for 'handwired/onekey/pytest' so we can test community layouts.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/community/ortho_1x1/layout.json1
-rw-r--r--layouts/community/ortho_1x1/test/keymap.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/layouts/community/ortho_1x1/layout.json b/layouts/community/ortho_1x1/layout.json
new file mode 100644
index 0000000000..66a1e18560
--- /dev/null
+++ b/layouts/community/ortho_1x1/layout.json
@@ -0,0 +1 @@
+[""]
diff --git a/layouts/community/ortho_1x1/test/keymap.c b/layouts/community/ortho_1x1/test/keymap.c
new file mode 100644
index 0000000000..6a186669b0
--- /dev/null
+++ b/layouts/community/ortho_1x1/test/keymap.c
@@ -0,0 +1,12 @@
+#include QMK_KEYBOARD_H
+
+/* This keyboard/layout is used to test community layout discovery/compilation. */
+
+#define _DEFAULT 0
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+[_DEFAULT] = LAYOUT (
+ KC_B
+),
+};