pylint-django icon indicating copy to clipboard operation
pylint-django copied to clipboard

Pylint plugin for improving code analysis for when using Django

Results 92 pylint-django issues
Sort by recently updated
recently updated
newest added

From the bottom of https://github.com/PyCQA/pylint-django/pull/299#issuecomment-755181122 MANAGER_ATTRS, QS_ATTRS, MODELADMIN_ATTRS, MODEL_ATTRS, FIELD_ATTRS and the rest of the lists containing auto-generated attributes from Django can probably be generated at runtime instead of hard-coding...

todo

Accessing the `.label` member for a `models.TextChoices` enumeration type https://docs.djangoproject.com/en/3.0/ref/models/fields/#enumeration-types raises this pylint error: `Instance of 'tuple' has no 'label' member (no-member)`. Is this something that would make sense to...

I'm working on new migrations for which I use a default value for a field and I get: `AddField with default value (new-db-field-with-default)` I have `# pylint: disable=new-db-field-with-default` in my...

There are a few Python 2vs3 related compatability statements that can be removed now that pylint_django simply doesn't support python2, so just to clean up, remove things like https://github.com/PyCQA/pylint-django/blob/master/pylint_django/utils.py#L11 and...

todo

As part of #287 I needed to remove the non-binary installation flag (see discussion here: https://github.com/PyCQA/pylint-django/pull/287#discussion_r478224905) As far as I can tell the problem comes from clikit not being installed...

todo

Both of these checkers inspect and rely on Django being present and configurable, and so there is a bit of overlap in their functionality. Rather than having two similar "setup"...

question
todo

Adding to the list of 'do not check these paths' for migrations is done in two places: https://github.com/PyCQA/pylint-django/blob/master/pylint_django/checkers/migrations.py#L159 https://github.com/PyCQA/pylint-django/blob/master/pylint_django/plugin.py#L21 This should be removed unless there is some reason that it...

todo

Hi there, There is a problem using this plugin together with Pre-Commit because its impossible to inject env variables in the Pre-Commit hooks. I'd like to suggest / request that...

Running pylint-django-2.0.9 Use of `django.http.StreamingHttpResponse` with `content_type` set to *application/json* generates: **R5102: Instead of HttpResponse(content_type='application/json') use JsonResponse() (http-response-with-content-type-json)** `JsonResponse()` is not suitable for streaming use-cases. The root cause is likely...

My Django projects directory structure is: . ├── config ├── element ├── home ├── static ├── templates ├── tree └── user I wanted to use the following pylint command: `pylint...