mirror of https://github.com/ArduPilot/ardupilot
Tools: don't check all files if no files-to-check supplied
This commit is contained in:
parent
7e51811a24
commit
f8fcc96103
|
@ -25,6 +25,8 @@ class Flake8Checker(object):
|
||||||
print("****** %s" % (string,))
|
print("****** %s" % (string,))
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
|
if len(self.files_to_check) == 0:
|
||||||
|
return
|
||||||
for path in self.files_to_check:
|
for path in self.files_to_check:
|
||||||
self.progress("Checking (%s)" % path)
|
self.progress("Checking (%s)" % path)
|
||||||
ret = subprocess.run(["flake8", "--show-source"] + self.files_to_check,
|
ret = subprocess.run(["flake8", "--show-source"] + self.files_to_check,
|
||||||
|
|
Loading…
Reference in New Issue