-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STY: format code base with black and add CI tests to check conformanc…
…e going forward
- Loading branch information
Showing
30 changed files
with
1,007 additions
and
802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,55 @@ | ||
try: | ||
from .reduce import (nansum, nanmean, nanstd, nanvar, nanmin, nanmax, | ||
median, nanmedian, ss, nanargmin, nanargmax, anynan, | ||
allnan) | ||
from .reduce import ( | ||
nansum, | ||
nanmean, | ||
nanstd, | ||
nanvar, | ||
nanmin, | ||
nanmax, | ||
median, | ||
nanmedian, | ||
ss, | ||
nanargmin, | ||
nanargmax, | ||
anynan, | ||
allnan, | ||
) | ||
from .nonreduce import replace | ||
from .nonreduce_axis import (partition, argpartition, rankdata, nanrankdata, | ||
push) | ||
from .move import (move_sum, move_mean, move_std, move_var, move_min, | ||
move_max, move_argmin, move_argmax, move_median, | ||
move_rank) | ||
from .nonreduce_axis import partition, argpartition, rankdata, nanrankdata, push | ||
from .move import ( | ||
move_sum, | ||
move_mean, | ||
move_std, | ||
move_var, | ||
move_min, | ||
move_max, | ||
move_argmin, | ||
move_argmax, | ||
move_median, | ||
move_rank, | ||
) | ||
|
||
from . import slow | ||
|
||
except ImportError: | ||
raise ImportError("bottleneck modules failed to import, likely due to a " | ||
"mismatch in NumPy versions. Either upgrade numpy to " | ||
"1.16+ or install with:\n\t" | ||
"pip install --no-build-isolation --no-cache-dir " | ||
"bottleneck") | ||
raise ImportError( | ||
"bottleneck modules failed to import, likely due to a " | ||
"mismatch in NumPy versions. Either upgrade numpy to " | ||
"1.16+ or install with:\n\t" | ||
"pip install --no-build-isolation --no-cache-dir " | ||
"bottleneck" | ||
) | ||
|
||
from bottleneck.benchmark.bench import bench | ||
from bottleneck.benchmark.bench_detailed import bench_detailed | ||
from bottleneck.tests.util import get_functions | ||
|
||
from ._pytesttester import PytestTester | ||
|
||
test = PytestTester(__name__) | ||
del PytestTester | ||
|
||
from ._version import get_versions # noqa: E402 | ||
__version__ = get_versions()['version'] | ||
|
||
__version__ = get_versions()["version"] | ||
del get_versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.