CI: Add workflow for codebase formatting (#7382)

* Add workflow for codebase formatting

* stash

* review comments

* Swap to a more complete push action
This commit is contained in:
Joel Challis authored and GitHub committed 2020-12-10 17:01:51 +00:00
1 parent 82bb47a2f1
commit 6c4b6531fe
5 files changed
+48 -6

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
"""Format files according to QMK's style.
"""
from milc import cli
import subprocess
@cli.subcommand("Format files according to QMK's style.", hidden=True)
def fileformat(cli):
"""Run several general formatting commands.
"""
dos2unix = subprocess.run(['bash', '-c', 'dos2unix **'])
return dos2unix.returncode