File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ repos:
13
13
rev : 4.0.1
14
14
hooks :
15
15
- id : flake8
16
- args : [ --max-line-length=120 ]
16
+ args : [ --max-line-length=140 ]
17
17
- repo : https://github.com/python/black
18
18
rev : 21.9b0
19
19
hooks :
20
20
- id : black
21
- args : [--safe, --line-length=120 ]
21
+ args : [--safe, --line-length=140 ]
22
22
- repo : https://github.com/PyCQA/isort
23
23
rev : 5.10.1
24
24
hooks :
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ class AuthUserChecker(checkers.BaseChecker):
13
13
f"E{ BASE_ID } 41" : (
14
14
"Hard-coded 'auth.User'" ,
15
15
"hard-coded-auth-user" ,
16
- "Don't hard-code the auth.User model. " " Use settings.AUTH_USER_MODEL instead!" ,
16
+ "Don't hard-code the auth.User model. Use settings.AUTH_USER_MODEL instead!" ,
17
17
),
18
18
f"E{ BASE_ID } 42" : (
19
19
"User model imported from django.contrib.auth.models" ,
20
20
"imported-auth-user" ,
21
- "Don't import django.contrib.auth.models.User model. " " Use django.contrib.auth.get_user_model() instead!" ,
21
+ "Don't import django.contrib.auth.models.User model. Use django.contrib.auth.get_user_model() instead!" ,
22
22
),
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class FormChecker(BaseChecker):
25
25
f"W{ BASE_ID } 04" : (
26
26
"Use explicit fields instead of exclude in ModelForm" ,
27
27
"modelform-uses-exclude" ,
28
- "Prevents accidentally allowing users to set fields, " " especially when adding new fields to a Model" ,
28
+ "Prevents accidentally allowing users to set fields, especially when adding new fields to a Model" ,
29
29
)
30
30
}
31
31
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class NewDbFieldWithDefaultChecker(checkers.BaseChecker):
59
59
f"W{ BASE_ID } 98" : (
60
60
"%s AddField with default value" ,
61
61
"new-db-field-with-default" ,
62
- "Used when Pylint detects migrations adding new " " fields with a default value." ,
62
+ "Used when Pylint detects migrations adding new fields with a default value." ,
63
63
)
64
64
}
65
65
@@ -121,7 +121,7 @@ class MissingBackwardsMigrationChecker(checkers.BaseChecker):
121
121
f"W{ BASE_ID } 97" : (
122
122
"Always include backwards migration callable" ,
123
123
"missing-backwards-migration-callable" ,
124
- "Always include a backwards/reverse callable counterpart" " so that the migration is not irreversable." ,
124
+ "Always include a backwards/reverse callable counterpart so that the migration is not irreversable." ,
125
125
)
126
126
}
127
127
Original file line number Diff line number Diff line change 22
22
f"W{ BASE_ID } 02" : (
23
23
"Found __unicode__ method on model (%s). Python3 uses __str__." ,
24
24
"model-has-unicode" ,
25
- "Django models should not implement a __unicode__ " " method for string representation when using Python3" ,
25
+ "Django models should not implement a __unicode__ method for string representation when using Python3" ,
26
26
),
27
27
f"W{ BASE_ID } 03" : (
28
28
"Model does not explicitly define __unicode__ (%s)" ,
You can’t perform that action at this time.
0 commit comments