diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 17b7b9b493..5866f95066 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -88,7 +88,7 @@ jobs: - name: Check python formatting id: yapf run: | - yapf --style="{based_on_style: google, indent_width: 2, SPLIT_BEFORE_NAMED_ASSIGNS: false}" -p -d -r \ + yapf -p -d -r \ tools/*.py \ blueprints diff --git a/.style.yapf b/.style.yapf new file mode 100644 index 0000000000..e44853b781 --- /dev/null +++ b/.style.yapf @@ -0,0 +1,4 @@ +[style] +based_on_style=google +indent_width=2 +split_before_named_assigns=false diff --git a/tools/lint.sh b/tools/lint.sh index ac410f40af..5b916c981b 100755 --- a/tools/lint.sh +++ b/tools/lint.sh @@ -32,7 +32,7 @@ echo -- FAST Names -- python3 tools/check_names.py --prefix-length=10 --failed-only fast/stages echo -- Python formatting -- -yapf --style="{based_on_style: google, indent_width: 2, SPLIT_BEFORE_NAMED_ASSIGNS: false}" -p -d -r \ +yapf -p -d -r \ tools/*.py \ blueprints