Skip to content

Commit 9c3b5fc

Browse files
committed
After re-formatting the files using black, the expected output locations for tests needs updating.
1 parent d99da70 commit 9c3b5fc

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
imported-auth-user:5:0:5:40::User model imported from django.contrib.auth.models:UNDEFINED
2-
imported-auth-user:6:0:6:43::User model imported from django.contrib.auth.models:UNDEFINED
1+
imported-auth-user:4:0:4:40::User model imported from django.contrib.auth.models:UNDEFINED
2+
imported-auth-user:5:0:5:43::User model imported from django.contrib.auth.models:UNDEFINED
33
hard-coded-auth-user:10:31:10:42:PullRequest:Hard-coded 'auth.User':UNDEFINED
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
http-response-with-json-dumps:9:11:9:64:say_yes:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data):UNDEFINED
2-
http-response-with-json-dumps:14:11:14:46:say_yes2:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data):UNDEFINED
3-
redundant-content-type-for-json-response:23:11:23:67:redundant_content_type:Redundant content_type parameter for JsonResponse():UNDEFINED
4-
http-response-with-content-type-json:28:11:28:67:content_type_json:Instead of HttpResponse(content_type='application/json') use JsonResponse():UNDEFINED
1+
http-response-with-json-dumps:10:11:10:64:say_yes:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data):UNDEFINED
2+
http-response-with-json-dumps:15:11:15:46:say_yes2:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data):UNDEFINED
3+
redundant-content-type-for-json-response:24:11:24:67:redundant_content_type:Redundant content_type parameter for JsonResponse():UNDEFINED
4+
http-response-with-content-type-json:29:11:29:67:content_type_json:Instead of HttpResponse(content_type='application/json') use JsonResponse():UNDEFINED
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
new-db-field-with-default:28:8:32:9:Migration:pylint_django.tests.input.migrations.0002_new_column AddField with default value:UNDEFINED
1+
new-db-field-with-default:29:8:33:9:Migration:pylint_django.tests.input.migrations.0002_new_column AddField with default value:UNDEFINED

pylint_django/tests/input/migrations/0003_without_backwards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=missing-docstring, invalid-name
1+
# pylint: disable=missing-docstring, invalid-name, line-too-long
22
from django.db import migrations
33

44

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
missing-backwards-migration-callable:12:8:12:30:Migration:Always include backwards migration callable:UNDEFINED
2-
missing-backwards-migration-callable:13:8:14:26:Migration:Always include backwards migration callable:UNDEFINED
3-
missing-backwards-migration-callable:15:8:16:31:Migration:Always include backwards migration callable:UNDEFINED
4-
missing-backwards-migration-callable:17:8:18:45:Migration:Always include backwards migration callable:UNDEFINED
2+
missing-backwards-migration-callable:13:8:13:43:Migration:Always include backwards migration callable:UNDEFINED
3+
missing-backwards-migration-callable:14:8:14:48:Migration:Always include backwards migration callable:UNDEFINED
4+
missing-backwards-migration-callable:15:8:15:62:Migration:Always include backwards migration callable:UNDEFINED

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ requires =
1717

1818
[testenv]
1919
commands =
20-
django_not_installed: bash -c \'pylint --load-plugins=pylint_django setup.py | grep django-not-configured\'
21-
django_is_installed: pylint --load-plugins=pylint_django --disable=E5110 setup.py
20+
django_not_installed: bash -c \'pylint --rcfile=tox.ini --load-plugins=pylint_django setup.py | grep django-not-configured\'
21+
django_is_installed: pylint --rcfile=tox.ini --load-plugins=pylint_django --disable=E5110 setup.py
2222
flake8: flake8
2323
pylint: pylint --rcfile=tox.ini -d missing-docstring,too-many-branches,too-many-return-statements,too-many-ancestors,fixme --ignore=tests pylint_django setup
2424
readme: bash -c "python setup.py -q sdist && twine check dist/*"
@@ -67,4 +67,7 @@ DJANGO =
6767
master: django-master
6868
6969
[flake8]
70-
max-line-length = 120
70+
max-line-length = 140
71+
72+
[FORMAT]
73+
max-line-length=140

0 commit comments

Comments
 (0)