SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > pylint_django > checkers >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib64/python3.11/site-packages/pylint_django/checkers/

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 802 bytes April 17 2025 13:10:59.
auth_user.py File 1392 bytes April 17 2025 13:10:59.
django_installed.py File 1319 bytes April 17 2025 13:10:59.
foreign_key_strings.py File 6321 bytes April 17 2025 13:10:59.
forms.py File 1517 bytes April 17 2025 13:10:59.
json_response.py File 2701 bytes April 17 2025 13:10:59.
migrations.py File 6428 bytes April 17 2025 13:10:59.
models.py File 4609 bytes April 17 2025 13:10:59.

Reading File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/pylint_django/checkers//django_installed.py

from __future__ import absolute_import

from pylint.checkers import BaseChecker
from pylint.checkers.utils import check_messages

from pylint_django.__pkginfo__ import BASE_ID


class DjangoInstalledChecker(BaseChecker):
    name = "django-installed-checker"

    msgs = {
        # pylint: disable=implicit-str-concat
        f"F{BASE_ID}01": (
            "Django is not available on the PYTHONPATH",
            "django-not-available",
            "Django could not be imported by the pylint-django plugin, so most Django related "
            "improvements to pylint will fail.",
        ),
        f"W{BASE_ID}99": (
            "Placeholder message to prevent disabling of checker",
            "django-not-available-placeholder",
            "PyLint does not recognise checkers as being enabled unless they have at least"
            " one message which is not fatal...",
        ),
    }

    @check_messages("django-not-available")
    def open(self):
        try:
            __import__("django")
        except ImportError:
            # mild hack: this error is added before any modules have been inspected
            # so we need to set some kind of value to prevent the linter failing to it
            self.linter.set_current_module("pylint_django")
            self.add_message("django-not-available")

SILENT KILLER Tool