Skip to content

Commit d2a9f78

Browse files
committed
Update .github/workflows/format.yml
It seems that the temporary file is unnecessary. README (https://github.com/google/yapf/blob/master/README.rst) says: > If --diff is supplied, YAPF returns zero when no changes were necessary, non-zero otherwise (including program error). You can use this in a CI workflow to test that code has been YAPF-formatted.<Paste>
1 parent ec1809d commit d2a9f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
oj-verify -h
2121
pylint --disable=all --enable=unused-import onlinejudge_verify onlinejudge_bundle tests setup.py
2222
isort --check-only --diff onlinejudge_verify onlinejudge_bundle tests setup.py
23-
yapf --diff --recursive onlinejudge_verify onlinejudge_bundle tests setup.py | tee yapf.patch && test ! -s yapf.patch
23+
yapf --diff --recursive onlinejudge_verify onlinejudge_bundle tests setup.py
2424
mypy onlinejudge_verify onlinejudge_bundle setup.py

0 commit comments

Comments
 (0)