Skip to content

Commit 185e22d

Browse files
committed
[Python] Add flake8 config
In swiftlang/swift#1153, @practicalswift added a flake8 config to the Swift project, in order to lint the Python scripts used by that project. This does the same for XCTest. This includes all the linting rules active on the main Swift repository. It also includes tweaks to `build_script.py`, which bring this project in full compliance with those linting rules. To lint the Python code in the project: $ flake8 To install flake8: $ pip install flake8 See https://flake8.readthedocs.org/en/latest/ for details.
1 parent 8fa8823 commit 185e22d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.pep8

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
filename = *.py
3+
max-line-length = 80

build_script.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818

1919
SOURCE_DIR = os.path.dirname(os.path.abspath(__file__))
2020

21+
2122
def note(msg):
2223
print("xctest-build: "+msg)
2324

25+
2426
def run(command):
2527
note(command)
2628
subprocess.check_call(command, shell=True)

0 commit comments

Comments
 (0)