From bbe18a3b1c30898cf7efe8f528f6bf9a08c96982 Mon Sep 17 00:00:00 2001 From: Bhav Beri Date: Fri, 7 Jun 2024 12:29:57 +0530 Subject: [PATCH] Added isort in github action Co-authored-by: Abhiram <127508564+abhiramtilakiiit@users.noreply.github.com> --- .github/workflows/formatting.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index f7548d9..c572424 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -21,12 +21,16 @@ jobs: run: | python -m pip install --upgrade pip pip install ruff + pip install isort + + - name: Format with ruff + run: ruff format *.py - name: Lint with ruff run: ruff check --fix *.py - - - name: Format with ruff - run: ruff format *.py + + - name: isort packages for python files + run: isort models.py otypes.py utils.py - name: Remove ruff cache run: rm -rf .ruff_cache