From f8fcc9610345d43501dc79eebf811ba3d0a1adcf Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 2 Jan 2024 09:59:57 +1100 Subject: [PATCH] Tools: don't check all files if no files-to-check supplied --- Tools/scripts/run_flake8.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/scripts/run_flake8.py b/Tools/scripts/run_flake8.py index acfde4e4e5..22df522e00 100755 --- a/Tools/scripts/run_flake8.py +++ b/Tools/scripts/run_flake8.py @@ -25,6 +25,8 @@ class Flake8Checker(object): print("****** %s" % (string,)) def check(self): + if len(self.files_to_check) == 0: + return for path in self.files_to_check: self.progress("Checking (%s)" % path) ret = subprocess.run(["flake8", "--show-source"] + self.files_to_check,