Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: simplify formatting workflow #594

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Install Black and ISort
run: pip install black==22.3.0 isort==5.12.0
- name: Sort Imports
run: git ls-files -z | grep -Ez -v '(pb2|pb2_grpc)\.py$' | grep -z '\.py$' | xargs -0 python3 -m isort --quiet
run: git ls-files -z -- '*.py' ':!**/*_pb2_grpc.py' ':!**/*_pb2.py' | xargs -0 python3 -m isort --quiet
- name: Format Python Code
run: git ls-files -z | grep -Ez -v '(pb2|pb2_grpc)\.py$' | grep -z '\.py$' | xargs -0 python3 -m black --quiet
run: git ls-files -z -- '*.py' ':!**/*_pb2_grpc.py' ':!**/*_pb2.py' | xargs -0 python3 -m black --quiet
- name: Check Differences After Formatting
run: git diff --ignore-submodules=all --color --exit-code .