From 65bac1eaac8e12bddb77e27bb336d0b4e47fd87e Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Thu, 3 Oct 2024 17:00:59 -0700 Subject: [PATCH] Make `build-script-helper.py` pass flake8 linting In preparation for https://github.com/swiftlang/github-workflows/pull/14 --- .flake8 | 4 ++++ build-script-helper.py | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 000000000..4f16d6847 --- /dev/null +++ b/.flake8 @@ -0,0 +1,4 @@ +[flake8] + +# Match the maximum line length in Swift files. +max-line-length = 120 diff --git a/build-script-helper.py b/build-script-helper.py index abde94bb2..6842ae4e8 100755 --- a/build-script-helper.py +++ b/build-script-helper.py @@ -15,12 +15,12 @@ from __future__ import print_function import argparse -import sys -import os, platform +import json +import os import subprocess +import sys from pathlib import Path -from typing import List, Union, Optional -import json +from typing import List, Optional, Union # ----------------------------------------------------------------------------- # General utilities