django-webpack-loader
django-webpack-loader copied to clipboard
PyLint C0413 warning when using webpack_loader in `settings.py`
When using get_files()
function in the settings.py
file import from webpack_loader.utils import get_files
should be placed after SECRET_KEY
& WEBPACK_LOADER
settings. So PyLint generates a warning C0413:Import "from webpack_loader.utils import get_files" should be placed at the top of the module
. Please fix initialization of webpack_loader to avoid this warning
I think your best option is to make a PR with the patch, and if you want less chance it breaks again in the future configure some ci.
In general, pylint is too strict to use in settings files. Closing.