--- a/checker.py Tue Jun 14 13:37:38 2016 +0800
+++ b/checker.py Tue Jun 14 13:51:47 2016 +0800
+ for f in files.splitlines():
+ cmd = [os.path.join(venv, 'bin', linter['cmd'])]
+ if not run(cmd + linter.get('flags', []) + [f], ignore_1=True):
print('# C&O task: cleanup')
--- a/incoming.py Tue Jun 14 13:37:38 2016 +0800
+++ b/incoming.py Tue Jun 14 13:51:47 2016 +0800
+ state = 'not even started'
+ # https://pep8.readthedocs.io/en/latest/intro.html#error-codes
+ if re.match(r'^.+:\d+:\d+: E9\d{2}', line) is not None:
+ elif re.match(r'^.+:\d+:\d+: [EWFCN]\d{3}', line) is not None:
+ elif re.match(r'^.+:\d+:\d+: \[error\]', line) is not None:
+ elif re.match(r'^.+:\d+:\d+: \[warning\]', line) is not None:
+ elif re.match(r'^.+:\d+:\d+: \(E\d{3}\)', line) is not None:
+ elif re.match(r'^.+:\d+:\d+: \(W\d{3}\)', line) is not None:
+ elif re.match(r'^.+:\d+:\d+: ', line) is not None:
if line.startswith(meta_prefix):
m = re.match('^task: (\w+)$', rest)
m = re.match('^job failed$', rest)