Skip to content

Commit

Permalink
fixing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
momonga-ml committed Nov 11, 2023
1 parent 621cd43 commit 216b7ab
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions denseclus/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions tests/denseclus_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import numpy as np
import pandas as pd
import pytest

from denseclus.DenseClus import DenseClus


Expand Down
1 change: 1 addition & 0 deletions tests/utils_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pandas as pd
import pytest

from denseclus.utils import extract_categorical, extract_numerical, transform_numerics


Expand Down

0 comments on commit 216b7ab

Please sign in to comment.