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:
parent
82bb47a2f1
commit
6c4b6531fe
5 changed files with 48 additions and 6 deletions
|
@ -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
|
||||
|
|
13
lib/python/qmk/cli/fileformat.py
Normal file
13
lib/python/qmk/cli/fileformat.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue