aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/tests/base.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-03-04 19:27:04 -0800
committerGravatar MarkKoz <[email protected]>2020-03-04 19:47:49 -0800
commit5ed6e71fed014759ef07399ecb25eb7538b1d5ae (patch)
treec73fc0fd5b3f9218263601ba2a499404cf975e6d /pydis_site/apps/api/tests/base.py
parentUpdate dev dependencies (diff)
Add more pre-commit hooks
Hooks added: * check-merge-conflict - checks for files with merge conflict strings * check-toml - attempts to load all toml files to verify syntax * check-yaml - attempts to load all yaml files to verify syntax * end-of-file-fixer - ensures files end in a newline and only a newline * mixed-line-ending - replaces mixed line endings with LF * trailing-whitespace - trims trailing whitespace * python-check-blanket-noqa - enforces that noqa annotations always occur with specific codes Changes made to comply with new hooks: * Remove trailing whitespaces * Remove some useless noqa annotations * Specify errors for noqa annotations * Add missing newlines at end of files See: python-discord/organisation#138
Diffstat (limited to 'pydis_site/apps/api/tests/base.py')
-rw-r--r--pydis_site/apps/api/tests/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/tests/base.py b/pydis_site/apps/api/tests/base.py
index b779256e..61c23b0f 100644
--- a/pydis_site/apps/api/tests/base.py
+++ b/pydis_site/apps/api/tests/base.py
@@ -5,7 +5,7 @@ from rest_framework.test import APITestCase
test_user, _created = User.objects.get_or_create(
username='test',
- password='testpass', # noqa
+ password='testpass',
is_superuser=True,
is_staff=True
)