Skip to content

Commit

Permalink
Update python-format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
inoue0426 authored Jul 23, 2024
1 parent e9c11ea commit 476d72b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/python-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install black
run: python -m pip install black
- name: Format code
- name: Install black, isort, and nbQA
run: |
python -m pip install black isort nbqa
- name: Format code with black
run: black .
- name: Sort imports with isort
run: isort .
- name: Format Jupyter Notebooks with nbQA
run: |
nbqa black .
nbqa isort .
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down

0 comments on commit 476d72b

Please sign in to comment.