Skip to content

Commit 30cb63d

Browse files
author
carlio
committed
Final final linter complaints
1 parent 5945fa2 commit 30cb63d

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

pylint_django/augmentations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def is_wsgi_application(node):
749749
def pylint_newstyle_classdef_compat(linter, warning_name, augment):
750750
if not hasattr(NewStyleConflictChecker, 'visit_classdef'):
751751
return
752-
suppress_message(linter, NewStyleConflictChecker.visit_classdef, warning_name, augment)
752+
suppress_message(linter, getattr(NewStyleConflictChecker, 'visit_classdef'), warning_name, augment)
753753

754754

755755
# augment things

pylint_django/checkers/forms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def _get_child_meta(node):
1313
for child in node.get_children():
1414
if isinstance(child, ClassDef) and child.name == 'Meta':
1515
return child
16+
return None
1617

1718

1819
class FormChecker(BaseChecker):

pylint_django/transforms/transforms/django_db_models_fields_files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=super-init-not-called
12
from django.db.models.fields import files as django_fields
23

34

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
def ugettext_lazy(x):
1+
def ugettext_lazy(_):
22
return ''

pylint_django/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Utils."""
22
import sys
33

4-
from pylint_django.compat import Uninferable
54
from astroid.bases import Instance
6-
from astroid.nodes import ClassDef
75
from astroid.exceptions import InferenceError
6+
from astroid.nodes import ClassDef
87

8+
from pylint_django.compat import Uninferable
99

1010
PY3 = sys.version_info >= (3, 0)
1111

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ commands =
1616
django_not_installed: bash -c \'pylint --load-plugins=pylint_django setup.py | grep django-not-available\'
1717
django_is_installed: pylint --load-plugins=pylint_django setup.py
1818
flake8: flake8
19-
pylint: pylint --rcfile=tox.ini -d missing-docstring --ignore=tests pylint_django setup
19+
pylint: pylint --rcfile=tox.ini -d missing-docstring,too-many-branches,too-many-return-statements,too-many-ancestors,fixme --ignore=tests pylint_django setup
2020
readme: python setup.py check --restructuredtext --strict
2121
py{36}-django{111,20}: coverage run pylint_django/tests/test_func.py -v
2222
py{35,36,37}-django21: coverage run pylint_django/tests/test_func.py -v

0 commit comments

Comments
 (0)