]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
trivial: Stop universally disabling F405 check
authorStephen Finucane <stephen@that.guru>
Wed, 29 Sep 2021 16:38:11 +0000 (17:38 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 30 Sep 2021 10:54:52 +0000 (11:54 +0100)
We only need this for one file. Simply filter out the things we want to
ignore.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/settings/dev.py
tox.ini

index aa3ee3c5108b43980770f64e05d0c88398af1856..2b7fc954cd0e992ce2b17d1231be2b4beef988c4 100644 (file)
@@ -7,6 +7,8 @@ Design based on:
     http://www.revsys.com/blog/2014/nov/21/recommended-django-project-layout/
 """
 
+import os
+
 from .base import *  # noqa
 
 try:
@@ -77,7 +79,7 @@ PASSWORD_HASHERS = ['django.contrib.auth.hashers.MD5PasswordHasher']
 # django-debug-toolbar
 
 if debug_toolbar:
-    INSTALLED_APPS += [
+    INSTALLED_APPS += [  # noqa: F405
         'debug_toolbar'
     ]
 
@@ -86,7 +88,7 @@ if debug_toolbar:
 # This should go first in the middleware classes
     MIDDLEWARE = [
         'debug_toolbar.middleware.DebugToolbarMiddleware',
-    ] + MIDDLEWARE
+    ] + MIDDLEWARE  # noqa: F405
 
     INTERNAL_IPS = [
         '127.0.0.1', '::1',
diff --git a/tox.ini b/tox.ini
index 1de53ac3c67ae82080c69032e3b6e0e2af7753b5..494e9fb58b5d758f057154b250badb1d027a65c9 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -47,9 +47,8 @@ commands = flake8 {posargs:patchwork manage.py}
 # Some rules are ignored as their use makes the code more difficult to read:
 #
 # E129 visually indented line with same indent as next logical line
-# F405 'name' may be undefined, or defined from star imports: 'module'
 # W504 line break after binary operator
-ignore = E129, F405, W504
+ignore = E129, W504
 
 [testenv:docs]
 deps =