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

Remove isort exclusions #11680

Merged
merged 5 commits into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ repos:
# project can specify its own first/third-party packages.
args: ["--config-root=python/", "--resolve-all-configs"]
files: python/.*
exclude: (__init__.py|setup.py)$
types_or: [python, cython, pyi]
- repo: https://github.com/psf/black
rev: 22.3.0
Expand Down
47 changes: 20 additions & 27 deletions python/cudf/cudf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,35 @@

import rmm

from cudf.api.types import dtype
from cudf import api, core, datasets, testing
from cudf._version import get_versions
from cudf.api.extensions import (
register_dataframe_accessor,
register_index_accessor,
register_series_accessor,
)
from cudf.core.scalar import Scalar
from cudf.api.types import dtype
from cudf.core.algorithms import factorize
from cudf.core.cut import cut
from cudf.core.dataframe import DataFrame, from_dataframe, from_pandas, merge
from cudf.core.dtypes import (
CategoricalDtype,
Decimal32Dtype,
Decimal64Dtype,
Decimal128Dtype,
IntervalDtype,
ListDtype,
StructDtype,
)
from cudf.core.groupby import Grouper
from cudf.core.index import (
BaseIndex,
CategoricalIndex,
DatetimeIndex,
Float32Index,
Float64Index,
Index,
GenericIndex,
Index,
Int8Index,
Int16Index,
Int32Index,
Expand All @@ -40,22 +52,8 @@
UInt64Index,
interval_range,
)
from cudf.core.dataframe import DataFrame, from_pandas, merge, from_dataframe
from cudf.core.series import Series
from cudf.core.missing import NA
from cudf.core.multiindex import MultiIndex
from cudf.core.cut import cut
from cudf.core.algorithms import factorize
from cudf.core.dtypes import (
CategoricalDtype,
Decimal64Dtype,
Decimal32Dtype,
Decimal128Dtype,
IntervalDtype,
ListDtype,
StructDtype,
)
from cudf.core.groupby import Grouper
from cudf.core.reshape import (
concat,
crosstab,
Expand All @@ -65,8 +63,9 @@
pivot_table,
unstack,
)
from cudf.core.series import isclose
from cudf.core.tools.datetimes import DateOffset, to_datetime
from cudf.core.scalar import Scalar
from cudf.core.series import Series, isclose
from cudf.core.tools.datetimes import DateOffset, date_range, to_datetime
from cudf.core.tools.numeric import to_numeric
from cudf.io import (
from_dlpack,
Expand All @@ -79,15 +78,9 @@
read_parquet,
read_text,
)
from cudf.core.tools.datetimes import date_range
from cudf.options import describe_option, get_option, set_option
from cudf.utils.dtypes import _NA_REP
from cudf.utils.utils import set_allocator, clear_cache

from cudf.options import (
get_option,
set_option,
describe_option,
)
from cudf.utils.utils import clear_cache, set_allocator

try:
from ptxcompiler.patch import patch_numba_codegen_if_needed
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
stream_compaction,
string_casting,
strings,
text,
transpose,
unary,
text,
)

MAX_COLUMN_SIZE = np.iinfo(np.int32).max
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_lib/strings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
startswith_multiple,
)
from cudf._lib.strings.findall import findall
from cudf._lib.strings.json import get_json_object, GetJsonObjectOptions
from cudf._lib.strings.json import GetJsonObjectOptions, get_json_object
from cudf._lib.strings.padding import (
SideType,
center,
Expand Down
3 changes: 2 additions & 1 deletion python/cudf/cudf/core/udf/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import typing, lowering
# Copyright (c) 2021-2022, NVIDIA CORPORATION.
from . import lowering, typing
2 changes: 1 addition & 1 deletion python/cudf/cudf/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from cudf.io.json import read_json
from cudf.io.orc import read_orc, read_orc_metadata, to_orc
from cudf.io.parquet import (
ParquetDatasetWriter,
merge_parquet_filemetadata,
read_parquet,
ParquetDatasetWriter,
read_parquet_metadata,
write_to_dataset,
)
Expand Down
3 changes: 1 addition & 2 deletions python/cudf/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
import sys
from distutils.spawn import find_executable

import versioneer
from setuptools import find_packages
from skbuild import setup
from skbuild.command.build_ext import build_ext

import versioneer

install_requires = [
"cachetools",
"cuda-python>=11.5,<11.7.1",
Expand Down
3 changes: 1 addition & 2 deletions python/cudf_kafka/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
from distutils.sysconfig import get_python_lib

import numpy as np
import versioneer
from Cython.Build import cythonize
from setuptools import find_packages, setup
from setuptools.extension import Extension

import versioneer

install_requires = ["cudf", "cython"]

extras_require = {"test": ["pytest", "pytest-xdist"]}
Expand Down
3 changes: 1 addition & 2 deletions python/custreamz/setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright (c) 2020-2022, NVIDIA CORPORATION.

from setuptools import find_packages, setup

import versioneer
from setuptools import find_packages, setup

install_requires = ["cudf_kafka", "cudf"]

Expand Down
3 changes: 1 addition & 2 deletions python/dask_cudf/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import re
import shutil

from setuptools import find_packages, setup

import versioneer
from setuptools import find_packages, setup

install_requires = [
"cudf",
Expand Down