I also have a .env file that I'm using Python-dotenv to load that has the PYTHONPATH environment variable set to PYTHONPATH="$(pwd):$(pwd)/src:$(pwd)/data" so that I can perform imports from within the data directory.
In the data_utils.py file I have an import that goes from dataset import Dataset. When I run my commits Isort groups from dataset import Dataset with the other third party import statements.
I've tried to specify the following in my .isort.cfg but none of them work:
The directory structure of my project is as follows:
I also have a
.env
file that I'm using Python-dotenv to load that has thePYTHONPATH
environment variable set toPYTHONPATH="$(pwd):$(pwd)/src:$(pwd)/data"
so that I can perform imports from within thedata
directory.In the
data_utils.py
file I have an import that goesfrom dataset import Dataset
. When I run my commits Isort groupsfrom dataset import Dataset
with the other third party import statements.I've tried to specify the following in my
.isort.cfg
but none of them work:known_first_party=data_utils
known_first_party=data_utils
&src_paths=data
I'm a little stuck as to what else I could try.