Skip to content

Commit 0be8f43

Browse files
author
Ross Bayer
committed
[Gardening] Update all Python scripting to conform to the style guidelines enforced by the black code-formatting tool.
1 parent 1f211ba commit 0be8f43

File tree

3 files changed

+374
-266
lines changed

3 files changed

+374
-266
lines changed

.flake8

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[flake8]
2+
3+
filename =
4+
*.py,
5+
list_tests/lit.cfg,
6+
7+
exclude =
8+
.git,
9+
__pycache__,
10+
11+
# Ignore non-Python directories.
12+
Sources,
13+
Tests,
14+
utils,
15+
16+
extend-ignore =
17+
# The black tool treats slices consistently, the E203 warning is not PEP8
18+
# compliant (https://github.com/psf/black#slices).
19+
E203,
20+
21+
# Line breaks before binary operators are not explicitly disallowed in
22+
# PEP8, rather it should be consistent throughout the project. The black
23+
# tool puts them on new lines which is to be considered a best practice
24+
# in the future.
25+
W503,
26+
27+
# 10% larger than the typical 80, conforms to the black standard.
28+
max-line-length = 88

0 commit comments

Comments
 (0)