mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-16 08:56:11 +00:00
6c4b6531fe
* Add workflow for codebase formatting * stash * review comments * Swap to a more complete push action
13 lines
328 B
Python
13 lines
328 B
Python
"""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
|