mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
5
.github/workflows/ci.py
vendored
5
.github/workflows/ci.py
vendored
@@ -133,10 +133,9 @@ def main():
|
|||||||
elif action == 'gofmt':
|
elif action == 'gofmt':
|
||||||
q = subprocess.check_output('gofmt -s -l tools'.split())
|
q = subprocess.check_output('gofmt -s -l tools'.split())
|
||||||
if q.strip():
|
if q.strip():
|
||||||
q = '\n'.join(filter(lambda x: not x.endswith('_generated.go'), q.decode().strip().splitlines())).strip()
|
q = '\n'.join(filter(lambda x: not x.rstrip().endswith('_generated.go'), q.decode().strip().splitlines())).strip()
|
||||||
if q:
|
if q:
|
||||||
print(q)
|
raise SystemExit(q)
|
||||||
raise SystemExit(1)
|
|
||||||
else:
|
else:
|
||||||
raise SystemExit(f'Unknown action: {action}')
|
raise SystemExit(f'Unknown action: {action}')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user