Skip to content

Commit ba69015

Browse files
Add yapf to CI and dev dependencies (#59)
Since we are now using yapf to format the repository, it makes sense to have yapf in the development requirements. This commit also adds a yapf format check to the CI to ensure that all new code changes are properly formatted.
1 parent a4ababe commit ba69015

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ jobs:
3434
- name: Check License Header
3535
run: |
3636
./check-license.sh
37+
- name: yapf formatting check
38+
run: |
39+
yapf . -drp

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
pytype==2022.06.06
33
pylint==2.14.1
44
pytest==7.1.2
5+
yapf==0.32.0

0 commit comments

Comments
 (0)