Run flake8 on bin/ files

Change-Id: I58d4b5a00e97785584c6d3bd8b06243f481c1934
This commit is contained in:
Tim Burke 2021-02-01 13:26:53 -08:00
parent 9e14a778cd
commit 1f9b879547
6 changed files with 7 additions and 2 deletions

View File

@ -34,6 +34,7 @@ def run_print_info(args, opts):
print('Account info failed: %s' % e)
sys.exit(1)
if __name__ == '__main__':
parser = OptionParser('%prog [options] ACCOUNT_DB_FILE')
parser.add_option(

View File

@ -86,5 +86,6 @@ def main():
print('# %s = %s' % (k, v))
print()
if __name__ == "__main__":
sys.exit(main())

View File

@ -34,6 +34,7 @@ def run_print_info(args, opts):
print('Container info failed: %s' % e)
sys.exit(1)
if __name__ == '__main__':
parser = OptionParser('%prog [options] CONTAINER_DB_FILE')
parser.add_option(

View File

@ -86,4 +86,5 @@ Lists old Swift processes.
print('%*s %*s %s' % (hours_len, 'Hours', pid_len, 'PID', 'Command'))
for hours, pid, args in listing:
print('%*s %*s %s' % (hours_len, hours, pid_len, pid, args[:args_len]))
print('%*s %*s %s' % (hours_len, hours, pid_len,
pid, args[:args_len]))

View File

@ -72,5 +72,6 @@ def main():
print('%s: %s' % (msg, err))
sys.exit(1)
if __name__ == '__main__':
main()

View File

@ -39,7 +39,7 @@ setenv = VIRTUAL_ENV={envdir}
[testenv:pep8]
commands =
flake8 {posargs:swift test doc setup.py}
flake8 --filename=swift* bin
flake8 --filename=bin/swift* bin
python ./setup.py check --restructuredtext --strict
bandit -c bandit.yaml -r swift -n 5
./.manpages {posargs}