Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor sub modules #78

Merged
merged 22 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add typing to __all__ and __author__
  • Loading branch information
RNKuhns committed Dec 1, 2022
commit 2d563ebd11390de2db81b44d50e3dd4f60d2c6c1
8 changes: 3 additions & 5 deletions skbase/testing/utils/_conditional_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@

Exports create_conditional_fixtures_and_names utility
"""

__author__ = ["fkiraly"]

__all__ = ["create_conditional_fixtures_and_names"]

from copy import deepcopy
from typing import Callable, Dict, List

import numpy as np

__author__: List[str] = ["fkiraly"]
__all__: List[str] = ["create_conditional_fixtures_and_names"]


class FixtureGenerationError(Exception):
"""Raised when a fixture fails to generate."""
Expand Down
6 changes: 3 additions & 3 deletions skbase/testing/utils/_dependencies.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# -*- coding: utf-8 -*-
"""Utility to check soft dependency imports, and raise warnings or errors."""

__author__ = ["fkiraly", "mloning"]

import io
import sys
import warnings
from importlib import import_module
from inspect import isclass
from typing import List

from packaging.specifiers import InvalidSpecifier, SpecifierSet

__author__: List[str] = ["fkiraly", "mloning"]


def _check_soft_dependencies(
*packages,
Expand Down
9 changes: 4 additions & 5 deletions skbase/testing/utils/deep_equals.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
pd.Series, pd.DataFrame, np.ndarray
lists, tuples, or dicts of a valid type (recursive)
"""

__author__ = ["fkiraly"]

__all__ = ["deep_equals"]

from typing import List

import numpy as np

from skbase.testing.utils._dependencies import _check_soft_dependencies

__author__: List[str] = ["fkiraly"]
__all__: List[str] = ["deep_equals"]


def deep_equals(x, y, return_msg=False):
"""Test two objects for equality in value.
Expand Down