You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pylint_django/checkers/foreign_key_strings.py
+42-17Lines changed: 42 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
from __future__ importabsolute_import
2
+
3
+
importastroid
2
4
frompylint.checkersimportBaseChecker
3
-
frompylint.interfacesimportIAstroidChecker
4
5
frompylint.checkers.utilsimportcheck_messages
6
+
frompylint.interfacesimportIAstroidChecker
7
+
5
8
frompylint_django.__pkginfo__importBASE_ID
6
9
frompylint_django.transformsimportforeignkey
7
-
importastroid
8
10
9
11
10
12
classForeignKeyStringsChecker(BaseChecker):
@@ -41,15 +43,27 @@ class ForeignKeyStringsChecker(BaseChecker):
41
43
),
42
44
)
43
45
44
-
msgs= {"E%s10"%BASE_ID: ("Django was not configured. For more information run pylint --load-plugins=pylint_django --help-msg=django-not-configured", "django-not-configured", _LONG_MESSAGE),
45
-
"F%s10"%BASE_ID: (
46
-
'Provided Django settings %s could not be loaded',
47
-
'django-settings-module-not-found',
48
-
'The provided Django settings module %s was not found on the path'
49
-
)}
46
+
msgs= {
47
+
"E%s10"
48
+
%BASE_ID: (
49
+
"Django was not configured. For more information run"
0 commit comments