Browse Source

CI automated format fixes (#11179)

* Format all C files for now, till diff logic works within CI

* Fix recursion of dos2unix
pull/11187/head
Joel Challis 3 years ago
committed by GitHub
parent
commit
1ebd243cdc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      .github/workflows/format.yaml
  2. +1
    -1
      lib/python/qmk/cli/fileformat.py

+ 2
- 2
.github/workflows/format.yaml View File

@ -6,7 +6,7 @@ on:
- master
jobs:
generate:
format:
runs-on: ubuntu-latest
container: qmkfm/base_container
@ -22,7 +22,7 @@ jobs:
- name: Format files
run: |
bin/qmk cformat
bin/qmk cformat -a
bin/qmk pyformat
bin/qmk fileformat


+ 1
- 1
lib/python/qmk/cli/fileformat.py View File

@ -9,5 +9,5 @@ import subprocess
def fileformat(cli):
"""Run several general formatting commands.
"""
dos2unix = subprocess.run(['bash', '-c', 'dos2unix **'])
dos2unix = subprocess.run(['bash', '-c', 'git ls-files -z | xargs -0 dos2unix'])
return dos2unix.returncode

Loading…
Cancel
Save