Skip to content

Commit 11a0bf9

Browse files
author
Carl Crowder
committed
Removing last pieces of failing tests and tox environments
1 parent af9dc4f commit 11a0bf9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

pylint_django/checkers/foreign_key_strings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def open(self):
9595
if hasattr(self, "linter"):
9696
django_settings_module = self.linter.config.django_settings_module
9797
else:
98+
# TODO: remove this no-member ignore : this is to avoid the missing `config` for pylint 3+,
99+
# and can be removed once pylint 2
100+
# pylint: disable=no-member
98101
django_settings_module = self.config.django_settings_module
99102

100103
if django_settings_module is None:

pylint_django/tests/input/external_drf_noerror_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Checks that Pylint does not complain about DRF serializers
33
"""
4-
# pylint: disable=C0111,W5101
4+
# pylint: disable=C0111,W5101,use-symbolic-message-instead
55

66
from rest_framework import serializers
77

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ commands =
2727
clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/
2828
deps =
2929
flake8: flake8
30-
pylint: pylint
30+
pylint: pylint<3
3131
pylint: Django
3232
readme: twine
3333
readme: wheel

0 commit comments

Comments
 (0)