-
Notifications
You must be signed in to change notification settings - Fork 483
/
pyproject.toml
88 lines (80 loc) · 1.46 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[project]
name = 'kmk_firmware'
dependencies = []
version = '0'
requires-python = '>=3.10'
[project.optional-dependencies]
dev = [
'flake8==7.0.0',
'flake8-black',
'flake8-commas',
'flake8-comprehensions',
'flake8-isort',
'flake8-pyproject',
'flake8-quotes',
]
[tool.setuptools]
packages = []
[tool.black]
# since black refuses to allow single-quotes... see locked conversation at
# https://github.com/psf/black/issues/594
skip-string-normalization = true
target-version = ['py36']
include = '''
/(
boards
|kmk
|tests
|user_keymaps
)/.*\.py
'''
[tool.flake8]
filename = [
'./boards/*.py',
'./kmk/*.py',
'./tests/*.py',
'./user_keymaps/*.py',
]
# match black expectations
max-line-length = 88
# enforce single quotes
docstring-quotes = "'''"
multiline-quotes = "'''"
extend-ignore = [
# manage trailing commas
'C812', 'C813',
# ignore: comment should start with '# '
'E262',
# manage line lengths
'E501',
]
per-file-ignores = [
# Allow misaligned array entries
'boards/**/*.py: E131',
'user_keymaps/**/*.py: E131',
]
[tool.isort]
known_standard_library = [
'analogio',
'bitbangio',
'bleio',
'board',
'busio',
'digitalio',
'framebuf',
'gc',
'machine',
'microcontroller',
'micropython',
'neopixel',
'pulseio',
'supervisor',
'usb_hid'
]
profile = 'black'
skip_glob = [
'!boards/*.py',
'!kmk/*.py',
'!tests/*.py',
'!user_keymaps/*.py',
]