Skip to content

Commit

Permalink
Update code_formatter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
khodealib authored Jun 29, 2024
1 parent 3542727 commit 85360b8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/code_formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.12.4'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black isort
pip install black isort autoflake
- name: Remove unused imports with autoflake
run: autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place .

- name: Run isort
run: isort .
Expand All @@ -31,7 +34,7 @@ jobs:
run: black --line-length 120 .

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply code formatting changes
file_pattern: '*'
Expand Down

0 comments on commit 85360b8

Please sign in to comment.