From 51570b9183c828e3c2cd37afec2f8488b7ba97c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jord=C3=A0=20Polo?= Date: Wed, 8 Jan 2025 12:51:50 -0800 Subject: [PATCH] Add isort to formatting action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jordà Polo --- .github/workflows/formatting.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index 068dee50..1a4c86eb 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -27,11 +27,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install black + python -m pip install black isort if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi - name: black format run: | black --diff --check . + - name: Run isort formatter + uses: isort/isort-action@master python-bytecode: runs-on: ubuntu-20.04 @@ -48,4 +50,4 @@ jobs: echo -e "${FILES}" echo -e "##############" exit 1 - fi \ No newline at end of file + fi