Fix linting
This commit is contained in:
parent
e413392826
commit
b92aceb682
@ -17,16 +17,21 @@
|
|||||||
|
|
||||||
# First, stuff that has no dependencies, or only C/MPY deps
|
# First, stuff that has no dependencies, or only C/MPY deps
|
||||||
import collections
|
import collections
|
||||||
|
|
||||||
|
import gc
|
||||||
|
|
||||||
import kmk.consts
|
import kmk.consts
|
||||||
import kmk.kmktime
|
|
||||||
import kmk.types
|
|
||||||
|
|
||||||
# Now stuff that depends on the above (and so on)
|
|
||||||
import kmk.keycodes
|
|
||||||
import kmk.matrix
|
|
||||||
|
|
||||||
import kmk.hid
|
import kmk.hid
|
||||||
import kmk.internal_state
|
import kmk.internal_state
|
||||||
|
# Now stuff that depends on the above (and so on)
|
||||||
|
import kmk.keycodes
|
||||||
|
import kmk.kmktime
|
||||||
|
import kmk.matrix
|
||||||
|
import kmk.types
|
||||||
|
from kmk.consts import LeaderMode, UnicodeModes
|
||||||
|
from kmk.hid import USB_HID
|
||||||
|
from kmk.internal_state import InternalState
|
||||||
|
from kmk.matrix import MatrixScanner
|
||||||
|
|
||||||
# GC runs automatically after CircuitPython imports. If we ever go back to
|
# GC runs automatically after CircuitPython imports. If we ever go back to
|
||||||
# supporting MicroPython, we'll need a GC here (and probably after each
|
# supporting MicroPython, we'll need a GC here (and probably after each
|
||||||
@ -34,12 +39,6 @@ import kmk.internal_state
|
|||||||
|
|
||||||
# Thanks for sticking around. Now let's do real work, starting below
|
# Thanks for sticking around. Now let's do real work, starting below
|
||||||
|
|
||||||
import gc
|
|
||||||
from kmk.consts import LeaderMode, UnicodeModes
|
|
||||||
from kmk.hid import USB_HID
|
|
||||||
from kmk.internal_state import InternalState
|
|
||||||
from kmk.matrix import MatrixScanner
|
|
||||||
|
|
||||||
|
|
||||||
class Firmware:
|
class Firmware:
|
||||||
debug_enabled = False
|
debug_enabled = False
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
USE_UTIME = False
|
USE_UTIME = False
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import string
|
import string
|
||||||
|
|
||||||
from kmk.keycodes import (Keycodes, Macro, RawKeycodes, char_lookup,
|
from kmk.keycodes import Keycodes, Macro, char_lookup, lookup_kc_with_cache
|
||||||
lookup_kc_with_cache)
|
|
||||||
from kmk.kmktime import sleep_ms
|
|
||||||
|
|
||||||
|
|
||||||
def simple_key_sequence(seq):
|
def simple_key_sequence(seq):
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
from kmk.consts import UnicodeModes
|
from kmk.consts import UnicodeModes
|
||||||
from kmk.keycodes import Common, Macro, Modifiers, generate_codepoint_keysym_seq
|
from kmk.keycodes import (Common, Macro, Modifiers,
|
||||||
from kmk.macros.simple import lookup_kc_with_cache, simple_key_sequence
|
generate_codepoint_keysym_seq)
|
||||||
|
from kmk.macros.simple import simple_key_sequence
|
||||||
from kmk.types import AttrDict
|
from kmk.types import AttrDict
|
||||||
from kmk.util import get_wide_ordinal
|
from kmk.util import get_wide_ordinal
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user