Skip to content

Commit dd9c81c

Browse files
authored
Revert "Integrate python-lint into validation tests"
1 parent 7005ddd commit dd9c81c

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

utils/python-lint

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@ def main():
2424
if flake8_result != 0:
2525
print("Missing modules flake8 or flake8-import-order. Please be sure "
2626
"to install these python packages before linting.")
27-
sys.exit(0)
2827

2928
utils_directory = os.path.dirname(os.path.abspath(__file__))
3029
parent_directory = os.path.dirname(utils_directory)
31-
linting_result = subprocess.call(
30+
subprocess.call(
3231
[sys.executable, "-m", "flake8"] + sys.argv[1:],
3332
cwd=parent_directory,
3433
universal_newlines=True
3534
)
36-
sys.exit(linting_result)
3735

3836

3937
if __name__ == '__main__':

utils/swift_build_support/tests/test_workspace.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ def test_workspace(self):
5050

5151
class ComputeBuildSubdirTestCase(unittest.TestCase):
5252

53-
def create_basic_args(self, generator, variant, assertions,
54-
enable_asan=False):
53+
def create_basic_args(self, generator, variant, assertions, enable_asan=False):
5554
return argparse.Namespace(
5655
cmake_generator=generator,
5756
cmark_build_variant=variant,
@@ -140,8 +139,7 @@ def test_all_combinations_are_unique(self):
140139

141140
def generate():
142141
for c in productions:
143-
args = argparse.Namespace(cmake_generator="Ninja",
144-
enable_asan=False)
142+
args = argparse.Namespace(cmake_generator="Ninja", enable_asan=False)
145143
for key, val in zip(keys, c):
146144
setattr(args, key, val)
147145
yield compute_build_subdir(args)

validation-test/Python/python-lint.swift

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)