From 5a45c69af48599ca5faeddd1c2f93ffca7e9dd5c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 04:38:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_core.py | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/tests/test_core.py b/tests/test_core.py index 9bf4b8e7..af587717 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1,46 +1,23 @@ from __future__ import annotations -import itertools import logging -import warnings -from functools import partial, reduce +from functools import partial from typing import TYPE_CHECKING, Callable -from unittest.mock import MagicMock, patch import numpy as np -import pandas as pd import pytest -from numpy_groupies.aggregate_numpy import aggregate -import flox from flox import xrutils -from flox.aggregations import Aggregation, _initialize_aggregation, _maybe_promote_int from flox.core import ( - HAS_NUMBAGG, - _choose_engine, - _convert_expected_groups_to_index, - _get_optimal_chunks_for_groups, - _normalize_indexes, - _validate_reindex, - factorize_, - find_group_cohorts, groupby_reduce, - rechunk_for_cohorts, - reindex_, - subset_to_blocks, ) from . import ( ALL_FUNCS, - BLOCKWISE_FUNCS, SCIPY_STATS_FUNCS, assert_equal, - assert_equal_tuple, has_cubed, has_dask, - raise_if_dask_computes, - requires_cubed, - requires_dask, ) logger = logging.getLogger("flox") @@ -53,8 +30,6 @@ if has_dask: import dask - import dask.array as da - from dask.array import from_array dask.config.set(scheduler="sync") else: @@ -64,13 +39,13 @@ def dask_array_ones(*args): if has_cubed: - import cubed + pass DEFAULT_QUANTILE = 0.9 if TYPE_CHECKING: - from flox.core import T_Agg, T_Engine, T_ExpectedGroupsOpt, T_Method + pass def _get_array_func(func: str) -> Callable: