Skip to content

Commit 10b9208

Browse files
committed
Minimise style exceptions
1 parent c218396 commit 10b9208

File tree

3 files changed

+36
-81
lines changed

3 files changed

+36
-81
lines changed

.flake8

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[flake8]
2+
extend-ignore =
3+
X100, E262,
4+
# See https://github.com/PyCQA/pycodestyle/issues/373
5+
E203,
6+
# black
7+
max-line-length = 88
8+
# black

pyproject.toml

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
[tool.black]
2-
# since black refuses to allow single-quotes... see locked conversation at
3-
# https://github.com/psf/black/issues/594
4-
skip-string-normalization = true
5-
target = "py36"
6-
# explicitly exclude user_keymaps from black formatting rules
7-
# because a visually-appealing keymap list will be flattened
8-
# by black into a much harder to understand format
9-
exclude = '''
10-
/(
11-
\.git
12-
| \.mypy_cache
13-
| \.tox
14-
| \.venv
15-
| \.pytest_cache
16-
| \.compiled
17-
| dist
18-
| boards
19-
| build
20-
| docs
21-
| user_keymaps
22-
| mnt
23-
)/
24-
'''
2+
target = ["py39"]
3+
4+
[tool.isort]
5+
profile = "black"
6+
known_standard_library = [
7+
"analogio",
8+
"bitbangio",
9+
"bleio",
10+
"board",
11+
"busio",
12+
"digitalio",
13+
"framebuf",
14+
"gamepad",
15+
"gc",
16+
"machine",
17+
"microcontroller",
18+
"micropython",
19+
"neopixel",
20+
"pulseio",
21+
"pyb",
22+
"pyb",
23+
"pydux",
24+
"supervisor",
25+
"ubluepy",
26+
"uio",
27+
"uos",
28+
"usb_hid",
29+
]

setup.cfg

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)