Pylint-django

Latest version: v2.6.1

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 9

2.0

--------------------------

- Requires pylint >= 2.0 which doesn't support Python 2 anymore!
- Add modelform-uses-unicode check to flag dangerous use of the exclude
attribute in ModelForm.Meta (Federico Bond).

0.11.1

--------------------------------------------------------------

- Enable test case for ``urlpatterns`` variable which was previously disabled
- Disable ``unused-argument`` message for the ``request`` argument passed to
view functions. Fix
`155 <https://github.com/pylint-dev/pylint-django/issues/155>`__
- Add transformations for ``model_utils`` managers instead of special-casing them.
Fix
`160 <https://github.com/pylint-dev/pylint-django/issues/160>`__

0.11

--------------------------------------------------------

- New ``JsonResponseChecker`` that looks for common anti-patterns with
http responses returning JSON. This includes::

HttpResponse(json.dumps(data))

HttpResponse(data, content_type='application/json')

JsonResponse(data, content_type=...)

0.10.0

------------------------------

- Remove the compatibility layer for older astroid versions
- Make flake8 happy. Fix
`102 <https://github.com/pylint-dev/pylint-django/issues/102>`__
- Fix: compatibility with Python < 3.6 caused by ``ModuleNotFoundError``
not available on older versions of Python (Juan Rial)
- Show README and CHANGELOG on PyPI. Fix
`122 <https://github.com/pylint-dev/pylint-django/issues/122>`__
- Fix explicit unicode check with ``python_2_unicode_compatible`` base models
(Federico Bond)
- Suppress ``not-an-iterable`` message for 'objects'. Fix
`117 <https://github.com/pylint-dev/pylint-django/issues/117>`__
- Teach pylint_django that ``objects.all()`` is subscriptable. Fix
`144 <https://github.com/pylint-dev/pylint-django/issues/144>`__
- Suppress ``invalid-name`` for ``wsgi.application``. Fix
`77 <https://github.com/pylint-dev/pylint-django/issues/77>`__
- Add test for ``WSGIRequest.context``. Closes
`78 <https://github.com/pylint-dev/pylint-django/issues/78>`__
- Register transforms for ``FileField``. Fix
`60 <https://github.com/pylint-dev/pylint-django/issues/60>`__
- New checker ``pylint_django.checkers.db_performance``.
Enables checking of migrations and reports when there's an
``AddField`` operation with a default value which may slow down applying
migrations on large tables. This may also lead to production tables
being locked while migrations are being applied. Fix
`118 <https://github.com/pylint-dev/pylint-django/issues/118>`__
- Suppress ``no-member`` for ``factory.SubFactory`` objects.
Useful when model factories use ``factory.SubFactory()`` for foreign
key relations.

0.9.4

-----------------------------

- Add an optional dependency on Django
- Fix the ``DjangoInstalledChecker`` so it can actually warn when
Django isn't available
- Fix `136 <https://github.com/pylint-dev/pylint-django/issues/136>`__ by
adding automated build and sanity test scripts

0.9.3

---------------------------------

- Fix `133 <https://github.com/pylint-dev/pylint-django/issues/133>`__ and
`134 <https://github.com/pylint-dev/pylint-django/issues/134>`__ by
including package data when building wheel and tar.gz packages for
PyPI (Joseph Herlant)

Page 6 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.