Imports like this:
from .file import *
are "anti-patterns". How can I import one python file into another, without breaking flake8 F430 rule? I have settings.py in the Django project that I want to "overwrite" in test_settings.py like this,
from settings import *
# make tests faster
DATABASES['default'] = {'ENGINE': 'django.db.backends.sqlite3'}
to test with in-memory database, and I cant figure out how to do it without breaking the rule.
from ... import *
. Import what you need:from settings import DATABASES
.settings
so you're actually breaking the base module too!from something import *
is great for interactive use cases like a Jupyter notebook. Don't use it in general production code and you should be good.