Skip to content

Commit

Permalink
Added isort in github action
Browse files Browse the repository at this point in the history
Co-authored-by: Abhiram <[email protected]>
  • Loading branch information
bhavberi and abhiramtilakiiit committed Jun 7, 2024
1 parent e5739c4 commit d8a1347
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with ruff
run: ruff check --fix *.py
pip install isort
- name: isort packages for python files
run: isort models.py otypes.py utils.py

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

- name: Lint with ruff
run: ruff check --fix *.py

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

Expand Down

0 comments on commit d8a1347

Please sign in to comment.