django-lint-2.0.4


توضیحات

Static analysis tool for Django projects.
ویژگی مقدار
سیستم عامل -
نام فایل django-lint-2.0.4
نام django-lint
نسخه کتابخانه 2.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Chris Lamb
ایمیل نویسنده chris@chris-lamb.co.uk
آدرس صفحه اصلی https://chris-lamb.co.uk/projects/django-lint
آدرس اینترنتی https://pypi.org/project/django-lint/
مجوز BSD
django-lint """"""""""" **Consulting services**: if your organisation needs a reputable software developer with a track record of producing high-quality and maintainable Python/Django code, please get in touch to discuss your needs. `More info <https://chris-lamb.co.uk/services>`_ ---- Ideas ===== * Default manager with restrictive get_query_set() * Oldforms (?) * Overring definition of model. Eg: class MyModel(models.Model): foo = [..] foo = [..] * Not importing settings via "django.conf import settings" * Not using reverse (or @permalink) in get_absolute_url (?) * Form definitions in models.py * Ignore tests Models ====== * Don't count ManyToMany fields on a model as a field * Remove common prefix checking. * models.. specifying "objects = " should be last Views ===== * Calling request.is_authenticated without actually calling function * order_by('?') * request.method.upper is a no-op (etc.) * cache.set without a timeout URLS ==== * Unreversible urlpatterns Layout ====== * Form class not in forms.py * Admin class not in admin.py Templates ========= * {% if foo %}{{ foo }}{% else %}bar{% endif %} => {{ foo|default:"bar" }} * {% with foo as bar %} ... [ not using {{ bar }} ] ... {% endwith %} * {% endblock %} vs. {% endblock blockname %} Settings ======== * Ordering of MIDDLEWARE_CLASSES * TEMPLATE_DIRS not absolute Layout ====== forms not in forms.py managers not in managers.py


نحوه نصب


نصب پکیج whl django-lint-2.0.4:

    pip install django-lint-2.0.4.whl


نصب پکیج tar.gz django-lint-2.0.4:

    pip install django-lint-2.0.4.tar.gz