From d5566b8c0812a24a569d103d86a68b79cda00928 Mon Sep 17 00:00:00 2001 From: jinzr Date: Mon, 4 Mar 2024 14:29:19 +0800 Subject: [PATCH] strengthened style constraints --- .github/workflows/style_check.yml | 8 +++++++- requirements.txt | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/style_check.yml b/.github/workflows/style_check.yml index fc1dcbfd47..1c37f13edd 100644 --- a/.github/workflows/style_check.yml +++ b/.github/workflows/style_check.yml @@ -49,7 +49,7 @@ jobs: - name: Install Python dependencies run: | - python3 -m pip install --upgrade pip black==22.3.0 flake8==5.0.4 click==8.1.0 + python3 -m pip install --upgrade pip black==22.3.0 flake8==5.0.4 click==8.1.0 isort==5.10.1 # Click issue fixed in https://github.com/psf/black/pull/2966 - name: Run flake8 @@ -67,3 +67,9 @@ jobs: working-directory: ${{github.workspace}} run: | black --check --diff . + + - name: Run isort + shell: bash + working-directory: ${{github.workspace}} + run: | + isort --check --diff . diff --git a/requirements.txt b/requirements.txt index dec20c6e4d..1a6f9dd0c4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,5 +9,6 @@ tensorboard typeguard dill black==22.3.0 +isort==5.10.1 onnx==1.15.0 onnxruntime==1.16.3