diff --git a/.pylintrc b/.pylintrc index 718b46dd4..dc7abab76 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,9 +1,16 @@ [MASTER] disable=arguments-differ,no-self-use,fixme,locally-disabled,too-many-ancestors,too-few-public-methods,import-outside-toplevel,bad-continuation,signature-differs,similarities,cyclic-import + load-plugins=pylint_django,pylint.extensions.bad_builtin + extension-pkg-whitelist=lxml + +# Allow constants to be shorter than normal (and lowercase, for settings.py) const-rgx=[a-zA-Z0-9_]{1,40}$ + ignored-modules=django-otp -jobs=12 ignore=migrations +max-attributes=12 + +jobs=12 diff --git a/passbook/providers/oauth2/models.py b/passbook/providers/oauth2/models.py index 647ddd899..67773ccd0 100644 --- a/passbook/providers/oauth2/models.py +++ b/passbook/providers/oauth2/models.py @@ -366,7 +366,6 @@ class AuthorizationCode(ExpiringModel, BaseGrantModel): @dataclass -# pylint: disable=too-many-instance-attributes class IDToken: """The primary extension that OpenID Connect makes to OAuth 2.0 to enable End-Users to be Authenticated is the ID Token data structure. The ID Token is a security token that contains diff --git a/passbook/providers/oauth2/views/authorize.py b/passbook/providers/oauth2/views/authorize.py index 2dcd223c5..b4bb544ef 100644 --- a/passbook/providers/oauth2/views/authorize.py +++ b/passbook/providers/oauth2/views/authorize.py @@ -57,7 +57,6 @@ ALLOWED_PROMPT_PARAMS = {PROMPT_NONE, PROMPT_CONSNET} @dataclass -# pylint: disable=too-many-instance-attributes class OAuthAuthorizationParams: """Parameteres required to authorize an OAuth Client""" diff --git a/passbook/providers/oauth2/views/token.py b/passbook/providers/oauth2/views/token.py index 2ff9e4683..f25723688 100644 --- a/passbook/providers/oauth2/views/token.py +++ b/passbook/providers/oauth2/views/token.py @@ -26,7 +26,6 @@ LOGGER = get_logger() @dataclass -# pylint: disable=too-many-instance-attributes class TokenParams: """Token params"""