Skip to content

Commit

Permalink
Explicit YAPF style
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktorn committed May 28, 2024
1 parent 3d66817 commit cf31d83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .style.yapf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[style]
based_on_style=google
indent_width=2
split_before_named_assigns=false
2 changes: 1 addition & 1 deletion tools/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cf31d83

Please sign in to comment.