"""Format files according to QMK's style.
"""frommilcimportcliimportsubprocess@cli.subcommand("Format files according to QMK's style.",hidden=True)deffileformat(cli):"""Run several general formatting commands.
"""dos2unix=subprocess.run(['bash','-c','git ls-files -z | xargs -0 dos2unix'],stdout=subprocess.DEVNULL)returndos2unix.returncode