Fix linting

This commit is contained in:
Josh Klar 2018-10-16 22:43:47 -07:00
parent e413392826
commit b92aceb682
No known key found for this signature in database
GPG Key ID: 220F99BD7DB7A99E
4 changed files with 17 additions and 19 deletions

View File

@ -17,16 +17,21 @@
# First, stuff that has no dependencies, or only C/MPY deps
import collections
import gc
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.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
# 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
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:
debug_enabled = False

View File

@ -1,6 +1,6 @@
import math
import time
USE_UTIME = False

View File

@ -1,8 +1,6 @@
import string
from kmk.keycodes import (Keycodes, Macro, RawKeycodes, char_lookup,
lookup_kc_with_cache)
from kmk.kmktime import sleep_ms
from kmk.keycodes import Keycodes, Macro, char_lookup, lookup_kc_with_cache
def simple_key_sequence(seq):

View File

@ -1,6 +1,7 @@
from kmk.consts import UnicodeModes
from kmk.keycodes import Common, Macro, Modifiers, generate_codepoint_keysym_seq
from kmk.macros.simple import lookup_kc_with_cache, simple_key_sequence
from kmk.keycodes import (Common, Macro, Modifiers,
generate_codepoint_keysym_seq)
from kmk.macros.simple import simple_key_sequence
from kmk.types import AttrDict
from kmk.util import get_wide_ordinal