mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 16:05:05 +02:00
Generate color names and table for Go
Also exclude generated files from gofmt checking
This commit is contained in:
6
.github/workflows/ci.py
vendored
6
.github/workflows/ci.py
vendored
@@ -133,8 +133,10 @@ def main():
|
||||
elif action == 'gofmt':
|
||||
q = subprocess.check_output('gofmt -s -l tools'.split())
|
||||
if q.strip():
|
||||
print(q.decode())
|
||||
raise SystemExit(1)
|
||||
q = '\n'.join(filter(lambda x: not x.endswith('_generated.go'), q.decode().strip().splitlines())).strip()
|
||||
if q:
|
||||
print(q)
|
||||
raise SystemExit(1)
|
||||
else:
|
||||
raise SystemExit(f'Unknown action: {action}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user