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

This prevents from a malformed JSON being created if any stdout output is made during Django setup, e.g.: print(). Signed-off-by: Noam Stolero

### Bug description Since 2.17.2 Pylint does not accept using a double negation on django Q objects. I reproduced the issue in a venv using Python 3.10.10 with nothing but...

I have prepared a [reproducible sample available on GitHub](https://github.com/conrado/pylint_test) Here's the requested pip freeze output, though it is also on the reproduction repository ``` asgiref==3.6.0 astroid==2.15.1 dill==0.3.6 Django==4.1.7 isort==5.12.0 lazy-object-proxy==1.9.0...

When chaining more than two Q Objects I get an `E1131:` unsupported operand type(s) for | (unsupported-binary-operation)`. I created a code example: ``` from django.db.models import Q from django.contrib.auth.models import...

bug

Here's a weird corner case that I've run into in our code base, where if a model instance is created through direct instantiation, subsequent calls to `isoformat` with a `timespec`...

error: ``` Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/site-packages/astroid/inference_tip.py", line 38, in _inference_tip_cached result = _cache[func, node] KeyError: (, ) During handling of the above exception, another exception occurred: Traceback...

I get a crash now when using the commandline flags. Fix https://github.com/PyCQA/pylint-django/issues/385 The issue is that creating the Settings objects already configures the settings. See the symptom: ``` $ pylint...

My Requirements: ``` Django==5.0.3 django-environ==0.11.2 psycopg2-binary==2.9.9 redis==5.0.3 djangorestframework==3.15.0 markdown==3.6.0 django-filter==24.1 celery==5.3.6 pylint==3.1.0 pylint-django==2.5.5 django-debug-toolbar==4.3.0 ``` When I run this command: ```pylint --load-plugins pylint_django --django-settings servis.settings.dev .``` I am getting this...

I noticed that pylint-django is installing an un-namespaced LICENSE file directly in site-packages. It conflicts with flake8-print There's a few files that end up in site-packages directly https://inspector.pypi.io/project/pylint-django/2.5.5/packages/18/af/a12d87924a021ebec74fc79c6742edd09cc63a23d957aca3c32796b8b521/pylint_django-2.5.5-py3-none-any.whl/ CHANGELOG.rst, CONTRIBUTORS.md...

enhancement

Heya, would it be possible to create a PyPi release with #427 included?