CircuitPython-provided modules should be considered stdlib-equiv by isort terms. Apply this new rule.

This commit is contained in:
Josh Klar 2019-07-25 00:04:06 -07:00
parent 11a4604f88
commit 45cadc7e5a
No known key found for this signature in database
GPG Key ID: A4A0C7B4E8EEE222
3 changed files with 26 additions and 5 deletions

View File

@ -1,7 +1,6 @@
import pulseio
import time import time
from math import e, exp, pi, sin from math import e, exp, pi, sin
import pulseio
from micropython import const from micropython import const
led_config = { led_config = {

View File

@ -1,6 +1,5 @@
import time import time
from math import e, exp, pi, sin from math import e, exp, pi, sin
from micropython import const from micropython import const
rgb_config = { rgb_config = {

View File

@ -22,10 +22,33 @@ per-file-ignores =
user_keymaps/**/*.py: F401,E501,E241,E131,BLK100 user_keymaps/**/*.py: F401,E501,E241,E131,BLK100
tests/test_data/keymaps/**/*.py: F401,E501 tests/test_data/keymaps/**/*.py: F401,E501
# Forgive me for my RAM hack sins # Forgive me for my RAM hack sins
kmk/keyboard_config.py: I001,I003,I004,F401 kmk/preload_imports.py: I001,I003,I004,F401
[isort] [isort]
known_third_party = analogio,bitbangio,bleio,board,busio,digitalio,framebuf,gamepad,gc,microcontroller,micropython,pulseio,pyb,pydux,uio,ubluepy,machine,pyb,uos known_standard_library =
analogio,
bitbangio,
bleio,
board,
busio,
digitalio,
framebuf,
gamepad,
gc,
machine,
microcontroller,
micropython,
neopixel,
pulseio,
pyb,
pyb,
pydux,
supervisor,
ubluepy,
uio,
uos,
# black compat
multi_line_output=3 multi_line_output=3
include_trailing_comma=True include_trailing_comma=True
force_grid_wrap=0 force_grid_wrap=0