-
Notifications
You must be signed in to change notification settings - Fork 162
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
Applying isort
and resolving circular imports
#453
Conversation
from dataprofiler.data_readers.csv_data import CSVData | ||
from dataprofiler.data_readers.csv_data import JSONData | ||
from dataprofiler.data_readers.csv_data import ParquetData | ||
from dataprofiler.data_readers.csv_data import AVROData | ||
|
||
from dataprofiler.labelers import data_processing, DataLabeler, \ | ||
UnstructuredDataLabeler | ||
from dataprofiler.data_readers.csv_data import (AVROData, CSVData, JSONData, | ||
ParquetData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a weird import. the fact we are importing through csv_data as opposed to:
from dataprofiler.data_readers.avro_data import AVROData
from dataprofiler.data_readers.base_data import BaseData
from dataprofiler.data_readers.json_data import JSONData
from dataprofiler.data_readers.parquet_data import ParquetData
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or at least I could see making these avail through the __init__
in data_readers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very weird ... will check on this
@@ -1,8 +1,8 @@ | |||
import unittest | |||
|
|||
from dataprofiler.profilers.profiler_options import BaseOption | |||
from dataprofiler.tests.profilers.profiler_options.abstract_test_options \ | |||
import AbstractTestOptions | |||
from dataprofiler.tests.profilers.profiler_options.abstract_test_options import \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this now breaches the 80 char limit, so whats going to happen if both flake8 and isort disagree?
@@ -1,6 +1,6 @@ | |||
from dataprofiler.profilers.profiler_options import CategoricalOptions | |||
from dataprofiler.tests.profilers.profiler_options.test_base_inspector_options \ | |||
import TestBaseInspectorOptions | |||
from dataprofiler.tests.profilers.profiler_options.test_base_inspector_options import \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since these are in tests, should we just be calling the tests relative as oppose to from the base of the dataprofiler.
e.g. tests are relative, but repo itself is not? would fix these 80 char issues
from dataprofiler.labelers.base_data_labeler import BaseDataLabeler | ||
from dataprofiler.profilers.profiler_options import DataLabelerOptions | ||
from dataprofiler.tests.profilers.profiler_options.test_base_inspector_options import \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
@@ -1,6 +1,6 @@ | |||
from dataprofiler.profilers.profiler_options import DateTimeOptions | |||
from dataprofiler.tests.profilers.profiler_options.test_base_inspector_options \ | |||
import TestBaseInspectorOptions | |||
from dataprofiler.tests.profilers.profiler_options.test_base_inspector_options import \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
* isort * filepath function issue
isort
to the respository