Browse Source

Run flake8 on bin/ files

Change-Id: I58d4b5a00e97785584c6d3bd8b06243f481c1934
changes/85/773485/1
Tim Burke 9 months ago
parent
commit
1f9b879547
  1. 1
      bin/swift-account-info
  2. 1
      bin/swift-config
  3. 1
      bin/swift-container-info
  4. 3
      bin/swift-oldies
  5. 1
      bin/swift-recon-cron
  6. 2
      tox.ini

1
bin/swift-account-info

@ -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(

1
bin/swift-config

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

1
bin/swift-container-info

@ -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(

3
bin/swift-oldies

@ -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]))

1
bin/swift-recon-cron

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

2
tox.ini

@ -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}

Loading…
Cancel
Save