You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
379 B

  1. """Format files according to QMK's style.
  2. """
  3. from milc import cli
  4. import subprocess
  5. @cli.subcommand("Format files according to QMK's style.", hidden=True)
  6. def fileformat(cli):
  7. """Run several general formatting commands.
  8. """
  9. dos2unix = subprocess.run(['bash', '-c', 'git ls-files -z | xargs -0 dos2unix'], stdout=subprocess.DEVNULL)
  10. return dos2unix.returncode