[PATCH 16 of 24 Openidrelay cube] [flake8] fix F821 undefined name '_'

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 09:53:59 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585471611 0
#      Sun Mar 29 08:46:51 2020 +0000
# Node ID dda82c1a81e808915e9692861ebb9af15a695a2d
# Parent  7dd31db8eddcfd56cb2f0fd0f2ba3bdacb594a46
[flake8] fix F821 undefined name '_'

diff --git a/cubicweb_openidrelay/views.py b/cubicweb_openidrelay/views.py
--- a/cubicweb_openidrelay/views.py
+++ b/cubicweb_openidrelay/views.py
@@ -26,6 +26,8 @@
 
 from cubicweb_openidrelay.utils import url_args
 
+from cubicweb import _
+
 # web authentication info retriever ############################################
 
 # a lot of vital information in openid/consummer/consummer.py
diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -22,4 +22,14 @@
   {envpython} -m check_manifest {toxinidir}
 
 [flake8]
+max-line-length = 120
 exclude = cubicweb_openidrelay/migration/*,test/data/*,.tox/*
+
+[pytest]
+python_files = *test_*.py
+testpaths = test
+addopts = -r fEs
+
+[check-manifest]
+ignore =
+  version.py




More information about the cubicweb-devel mailing list