Run flake8 on bin/ files
Change-Id: I58d4b5a00e97785584c6d3bd8b06243f481c1934
This commit is contained in:
parent
9e14a778cd
commit
1f9b879547
@ -34,6 +34,7 @@ def run_print_info(args, opts):
|
|||||||
print('Account info failed: %s' % e)
|
print('Account info failed: %s' % e)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = OptionParser('%prog [options] ACCOUNT_DB_FILE')
|
parser = OptionParser('%prog [options] ACCOUNT_DB_FILE')
|
||||||
parser.add_option(
|
parser.add_option(
|
||||||
|
@ -86,5 +86,6 @@ def main():
|
|||||||
print('# %s = %s' % (k, v))
|
print('# %s = %s' % (k, v))
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
@ -34,6 +34,7 @@ def run_print_info(args, opts):
|
|||||||
print('Container info failed: %s' % e)
|
print('Container info failed: %s' % e)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = OptionParser('%prog [options] CONTAINER_DB_FILE')
|
parser = OptionParser('%prog [options] CONTAINER_DB_FILE')
|
||||||
parser.add_option(
|
parser.add_option(
|
||||||
|
@ -86,4 +86,5 @@ Lists old Swift processes.
|
|||||||
|
|
||||||
print('%*s %*s %s' % (hours_len, 'Hours', pid_len, 'PID', 'Command'))
|
print('%*s %*s %s' % (hours_len, 'Hours', pid_len, 'PID', 'Command'))
|
||||||
for hours, pid, args in listing:
|
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]))
|
||||||
|
@ -72,5 +72,6 @@ def main():
|
|||||||
print('%s: %s' % (msg, err))
|
print('%s: %s' % (msg, err))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
2
tox.ini
2
tox.ini
@ -39,7 +39,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
flake8 {posargs:swift test doc setup.py}
|
flake8 {posargs:swift test doc setup.py}
|
||||||
flake8 --filename=swift* bin
|
flake8 --filename=bin/swift* bin
|
||||||
python ./setup.py check --restructuredtext --strict
|
python ./setup.py check --restructuredtext --strict
|
||||||
bandit -c bandit.yaml -r swift -n 5
|
bandit -c bandit.yaml -r swift -n 5
|
||||||
./.manpages {posargs}
|
./.manpages {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user