Skip to content

Commit

Permalink
Remove unwanted step from github formatting action
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi committed Mar 12, 2024
1 parent 5e36327 commit 6859caf
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,28 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with ruff
run: ruff check --fix *.py

- name: Format with ruff
run: ruff format *.py

- name: Remove ruff cache
run: rm -rf .ruff_cache

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply Linting & Formatting Fixes

- name: Remove Linting Branch
run: |
if git rev-parse --verify linting >/dev/null 2>&1; then
git push origin --delete linting
fi

# - name: Remove Linting Branch
# run: |
# if git rev-parse --verify linting >/dev/null 2>&1; then
# git push origin --delete linting
# fi

0 comments on commit 6859caf

Please sign in to comment.