Skip to content

Commit

Permalink
Made project flake8 compatible
Browse files Browse the repository at this point in the history
flake8 --extend-ignore=E203,E701 --max-line-length 88 tests/ distclassipy setup.py
  • Loading branch information
sidchaini committed May 12, 2024
1 parent 3369fae commit d63644e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
6 changes: 4 additions & 2 deletions distclassipy/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,19 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from typing import Callable

import numpy as np

import pandas as pd

import scipy

from sklearn.base import BaseEstimator, ClassifierMixin
from sklearn.neighbors import KernelDensity
from sklearn.utils.multiclass import unique_labels
from sklearn.utils.validation import check_X_y, check_array, check_is_fitted

from typing import Callable

from .distances import Distance

# Hardcoded source packages to check for distance metrics.
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from setuptools import setup
import codecs
import os.path

from setuptools import setup


def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
Expand Down
7 changes: 5 additions & 2 deletions tests/test_classifier.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import pytest
import numpy as np
from distclassipy.classifier import DistanceMetricClassifier

import numpy as np

import pytest

from sklearn.utils.estimator_checks import check_estimator


Expand Down
5 changes: 3 additions & 2 deletions tests/test_distances.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import pytest
import numpy as np
# import pytest
from distclassipy.distances import Distance

import numpy as np

# Initialize the Distance class to use its methods for testing
distance = Distance()

Expand Down

0 comments on commit d63644e

Please sign in to comment.