kmk_firmware/setup.cfg

57 lines
1.1 KiB
INI
Raw Normal View History

[flake8]
2019-07-25 09:05:29 +02:00
exclude = .git,__pycache__,vendor,.venv,build,dist,.compiled
# match black expectations
max_line_length = 88
# enforce single quotes
docstring-quotes = '''
multiline-quotes = '''
extend-ignore =
X100, E262,
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
# comply with black
# it will handle line lengths automatically
E501,
# it also controls trailing commas in general
C812, C813, C815,
per-file-ignores =
# Allow crazy line lengths, unused variables, and multiple spaces after commas in lists (for grid alignment)
user_keymaps/**/*.py: F401,E501,E241,E131,BLK100
tests/test_data/keymaps/**/*.py: F401,E501
# Forgive me for my RAM hack sins
kmk/preload_imports.py: I001,I003,I004,F401
[isort]
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
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88