From 216b7ab7da2e4b73ffc0b7528a65b00d5abd8f45 Mon Sep 17 00:00:00 2001 From: Charles Frenzel Date: Sat, 11 Nov 2023 09:31:40 -0500 Subject: [PATCH] fixing lint errors --- .github/workflows/linter.yml | 5 +---- denseclus/utils.py | 3 +-- tests/conftest.py | 4 ++-- tests/denseclus_test.py | 1 + tests/utils_test.py | 1 + 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 087f918..72ba0f3 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -38,15 +38,12 @@ jobs: ########################## - name: Checkout Code uses: actions/checkout@v2 - with: - # Full git history is needed to get a proper list of changed files within `super-linter` - fetch-depth: 0 ################################ # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter@v4 + uses: github/super-linter@v5 env: VALIDATE_ALL_CODEBASE: false DEFAULT_BRANCH: main diff --git a/denseclus/utils.py b/denseclus/utils.py index 41f15cd..703c41d 100644 --- a/denseclus/utils.py +++ b/denseclus/utils.py @@ -7,9 +7,8 @@ import numpy as np import pandas as pd -from sklearn.preprocessing import PowerTransformer from sklearn.datasets import make_blobs -from sklearn.preprocessing import KBinsDiscretizer, StandardScaler +from sklearn.preprocessing import KBinsDiscretizer, PowerTransformer, StandardScaler def extract_categorical(df: pd.DataFrame) -> pd.DataFrame: diff --git a/tests/conftest.py b/tests/conftest.py index ad935e8..bc1d4b6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,9 +2,9 @@ Fixture configs for tests """ -import pytest -import numpy as np import pandas as pd +import pytest + from denseclus.DenseClus import DenseClus from denseclus.utils import make_dataframe diff --git a/tests/denseclus_test.py b/tests/denseclus_test.py index 29701cb..8b77e50 100644 --- a/tests/denseclus_test.py +++ b/tests/denseclus_test.py @@ -2,6 +2,7 @@ import numpy as np import pandas as pd import pytest + from denseclus.DenseClus import DenseClus diff --git a/tests/utils_test.py b/tests/utils_test.py index 9ec562f..234b5e3 100644 --- a/tests/utils_test.py +++ b/tests/utils_test.py @@ -1,5 +1,6 @@ import pandas as pd import pytest + from denseclus.utils import extract_categorical, extract_numerical, transform_numerics