Reformat all code using yapf
This commit is contained in:
7
.github/workflows/linting.yml
vendored
7
.github/workflows/linting.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r tools/REQUIREMENTS.txt
|
||||
pip install -r tools/requirements.txt
|
||||
|
||||
- name: Boilerplate
|
||||
id: boilerplate
|
||||
@@ -67,3 +67,8 @@ jobs:
|
||||
id: name-length-fast
|
||||
run: |
|
||||
python3 tools/check_names.py --prefix-length=10 fast/stages
|
||||
|
||||
- name: Check python formatting
|
||||
id: yapf
|
||||
run: |
|
||||
yapf --style="{based_on_style: google, indent_width: 2, SPLIT_BEFORE_NAMED_ASSIGNS: false}" -p -d tools/*.py
|
||||
|
||||
Reference in New Issue
Block a user