1
0
Fork 0

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 2020-12-10 17:01:51 +00:00 committed by GitHub
parent 82bb47a2f1
commit 6c4b6531fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 6 deletions

View file

@ -14,6 +14,7 @@ from . import compile
from . import config
from . import docs
from . import doctor
from . import fileformat
from . import flash
from . import generate
from . import hello

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