2018-09-03 05:06:53 +02:00
|
|
|
[flake8]
|
2019-07-25 09:32:20 +02:00
|
|
|
exclude = .git,__pycache__,vendor,.venv,build,dist,.compiled,mnt
|
2019-07-25 07:56:10 +02:00
|
|
|
# match black expectations
|
|
|
|
max_line_length = 88
|
|
|
|
|
|
|
|
# enforce single quotes
|
|
|
|
docstring-quotes = '''
|
|
|
|
multiline-quotes = '''
|
|
|
|
|
2019-07-25 08:43:00 +02:00
|
|
|
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,
|
|
|
|
|
2018-09-23 07:08:21 +02:00
|
|
|
per-file-ignores =
|
2021-06-20 22:09:47 +02:00
|
|
|
# Allow misaligned array entries, crazy line lengths, unused variables,
|
|
|
|
# multiple spaces after commas in lists (for grid alignment), and put
|
|
|
|
# your imports in whatever order you want
|
|
|
|
user_keymaps/**/*.py: E131,F401,E501,E241,E131,BLK100,I003
|
2020-10-21 21:19:42 +02:00
|
|
|
boards/**/main.py: E131,F401,E501,E241,E131,BLK100
|
2018-09-23 11:38:28 +02:00
|
|
|
tests/test_data/keymaps/**/*.py: F401,E501
|
2018-09-03 12:22:31 +02:00
|
|
|
|
|
|
|
[isort]
|
2019-07-25 09:04:06 +02:00
|
|
|
known_standard_library =
|
|
|
|
analogio,
|
|
|
|
bitbangio,
|
|
|
|
bleio,
|
|
|
|
board,
|
|
|
|
busio,
|
|
|
|
digitalio,
|
|
|
|
framebuf,
|
|
|
|
gamepad,
|
|
|
|
gc,
|
|
|
|
machine,
|
|
|
|
microcontroller,
|
|
|
|
micropython,
|
|
|
|
neopixel,
|
|
|
|
pulseio,
|
|
|
|
pyb,
|
|
|
|
pyb,
|
|
|
|
pydux,
|
|
|
|
supervisor,
|
|
|
|
ubluepy,
|
|
|
|
uio,
|
|
|
|
uos,
|
2019-07-25 09:32:20 +02:00
|
|
|
usb_hid,
|
2019-07-25 09:04:06 +02:00
|
|
|
|
|
|
|
# black compat
|
2019-07-25 07:56:10 +02:00
|
|
|
multi_line_output=3
|
|
|
|
include_trailing_comma=True
|
|
|
|
force_grid_wrap=0
|
|
|
|
use_parentheses=True
|
|
|
|
line_length=88
|