2018-09-02 23:06:53 -04:00
|
|
|
[flake8]
|
2018-10-06 00:18:43 -04:00
|
|
|
exclude = .git,__pycache__,vendor,.venv,build
|
2019-07-25 01:56:10 -04:00
|
|
|
# match black expectations
|
|
|
|
|
max_line_length = 88
|
|
|
|
|
|
|
|
|
|
# enforce single quotes
|
|
|
|
|
docstring-quotes = '''
|
|
|
|
|
multiline-quotes = '''
|
|
|
|
|
|
2019-07-25 02:43:00 -04: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 01:08:21 -04:00
|
|
|
per-file-ignores =
|
2018-09-30 23:21:42 -04:00
|
|
|
# Allow crazy line lengths, unused variables, and multiple spaces after commas in lists (for grid alignment)
|
2019-07-25 02:43:00 -04:00
|
|
|
user_keymaps/**/*.py: F401,E501,E241,E131,BLK100
|
2018-09-23 05:38:28 -04:00
|
|
|
tests/test_data/keymaps/**/*.py: F401,E501
|
2018-10-16 07:04:39 -04:00
|
|
|
# Forgive me for my RAM hack sins
|
2019-07-20 18:03:36 -04:00
|
|
|
kmk/keyboard_config.py: I001,I003,I004,F401
|
2018-09-03 06:22:31 -04:00
|
|
|
|
|
|
|
|
[isort]
|
2018-09-23 05:38:28 -04:00
|
|
|
known_third_party = analogio,bitbangio,bleio,board,busio,digitalio,framebuf,gamepad,gc,microcontroller,micropython,pulseio,pyb,pydux,uio,ubluepy,machine,pyb,uos
|
2019-07-25 01:56:10 -04:00
|
|
|
multi_line_output=3
|
|
|
|
|
include_trailing_comma=True
|
|
|
|
|
force_grid_wrap=0
|
|
|
|
|
use_parentheses=True
|
|
|
|
|
line_length=88
|