Skip to content

Commit c381643

Browse files
committed
Minimizes non-standard style options
Current black, isort and flake 8 don't need as many options. Remove all file based exclusions. Move needed configs into pyproject.toml if possible. Remaining flake8 configs into into a named file. Intention is to have as few differences from standard as possible. Next commit will be bumping dependencies. Then fixing the formatting across the project. Many user_keymaps and boards will need block exceptions for black and flake8, so they continue to look like the physical keyboards they represent.
1 parent 194dd58 commit c381643

File tree

5 files changed

+280
-368
lines changed

5 files changed

+280
-368
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

Pipfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@ name = "pypi"
66
[packages]
77

88
[dev-packages]
9-
"flake8" = ">=3.9.0"
10-
"flake8-commas" = "*"
11-
"flake8-comprehensions" = "*"
12-
"flake8-isort" = "*"
13-
"python-magic" = "*"
9+
black = "*"
10+
isort = "*"
11+
flake8 = "*"
12+
flake8-black = "*"
13+
flake8-isort = "*"
1414
adafruit-ampy = "*"
1515
ipdb = "*"
1616
ipython = "*"
17-
isort = "*"
1817
neovim = "*"
1918
s3cmd = "*"
20-
black = "==21.6b0"
21-
flake8-quotes = "*"
22-
flake8-black = "*"

0 commit comments

Comments
 (0)