CRLF hell in run_checks
This commit is contained in:
parent
79ca275e2b
commit
9f879e0731
@ -1,27 +1,27 @@
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
status = {}
|
||||
|
||||
def run(name, args=None):
|
||||
sys.argv = [name, 'qutebrowser']
|
||||
if args is not None:
|
||||
sys.argv += args
|
||||
print("====== {} ======".format(name))
|
||||
try:
|
||||
load_entry_point(name, 'console_scripts', name)()
|
||||
except SystemExit as e:
|
||||
status[name] = e
|
||||
except Exception as e:
|
||||
print(e)
|
||||
status[name] = None
|
||||
print()
|
||||
|
||||
run('pylint')
|
||||
run('flake8', ['--max-complexity', '10'])
|
||||
# FIXME what about PyChecker?
|
||||
|
||||
|
||||
print('Exit status values:')
|
||||
for (k, v) in status.items():
|
||||
print(' {} - {}'.format(k, v))
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
status = {}
|
||||
|
||||
def run(name, args=None):
|
||||
sys.argv = [name, 'qutebrowser']
|
||||
if args is not None:
|
||||
sys.argv += args
|
||||
print("====== {} ======".format(name))
|
||||
try:
|
||||
load_entry_point(name, 'console_scripts', name)()
|
||||
except SystemExit as e:
|
||||
status[name] = e
|
||||
except Exception as e:
|
||||
print(e)
|
||||
status[name] = None
|
||||
print()
|
||||
|
||||
run('pylint')
|
||||
run('flake8', ['--max-complexity', '10'])
|
||||
# FIXME what about PyChecker?
|
||||
|
||||
|
||||
print('Exit status values:')
|
||||
for (k, v) in status.items():
|
||||
print(' {} - {}'.format(k, v))
|
||||
|
Loading…
Reference in New Issue
Block a user