django-webpack-loader icon indicating copy to clipboard operation
django-webpack-loader copied to clipboard

PyLint C0413 warning when using webpack_loader in `settings.py`

Open osya opened this issue 7 years ago • 1 comments

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

osya avatar Feb 20 '18 20:02 osya

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.

jpic avatar Mar 12 '18 21:03 jpic

In general, pylint is too strict to use in settings files. Closing.

fjsj avatar Nov 29 '23 20:11 fjsj