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 <127508564+abhiramtilakiiit@users.noreply.github.com>
  • Loading branch information
bhavberi and abhiramtilakiiit committed Jun 7, 2024
1 parent ad8dadc commit 54d7daf
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: Format with ruff
run: ruff format *.py

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

- name: isort packages for python files
run: isort models.py mtypes.py otypes.py utils.py mailing.py mailing_templates.py

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

Expand Down

0 comments on commit 54d7daf

Please # to comment.