Skip to content

Commit d99da70

Browse files
committed
Pylint fixes
1 parent 11469a4 commit d99da70

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ repos:
1313
rev: 4.0.1
1414
hooks:
1515
- id: flake8
16-
args: [ --max-line-length=120 ]
16+
args: [ --max-line-length=140 ]
1717
- repo: https://github.com/python/black
1818
rev: 21.9b0
1919
hooks:
2020
- id: black
21-
args: [--safe, --line-length=120]
21+
args: [--safe, --line-length=140]
2222
- repo: https://github.com/PyCQA/isort
2323
rev: 5.10.1
2424
hooks:

pylint_django/checkers/auth_user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class AuthUserChecker(checkers.BaseChecker):
1313
f"E{BASE_ID}41": (
1414
"Hard-coded 'auth.User'",
1515
"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!",
1717
),
1818
f"E{BASE_ID}42": (
1919
"User model imported from django.contrib.auth.models",
2020
"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!",
2222
),
2323
}
2424

pylint_django/checkers/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class FormChecker(BaseChecker):
2525
f"W{BASE_ID}04": (
2626
"Use explicit fields instead of exclude in ModelForm",
2727
"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",
2929
)
3030
}
3131

pylint_django/checkers/migrations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class NewDbFieldWithDefaultChecker(checkers.BaseChecker):
5959
f"W{BASE_ID}98": (
6060
"%s AddField with default value",
6161
"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.",
6363
)
6464
}
6565

@@ -121,7 +121,7 @@ class MissingBackwardsMigrationChecker(checkers.BaseChecker):
121121
f"W{BASE_ID}97": (
122122
"Always include backwards migration callable",
123123
"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.",
125125
)
126126
}
127127

pylint_django/checkers/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
f"W{BASE_ID}02": (
2323
"Found __unicode__ method on model (%s). Python3 uses __str__.",
2424
"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",
2626
),
2727
f"W{BASE_ID}03": (
2828
"Model does not explicitly define __unicode__ (%s)",

0 commit comments

Comments
 (0)