Flake8 cubicweb/etwist/twconfig.py
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 21 Mar 2019 11:47:10 +0100
changeset 12527 bcb895aa2684
parent 12526 b78e3472a7d6
child 12528 f9b46b63393e
Flake8 cubicweb/etwist/twconfig.py
cubicweb/etwist/twconfig.py
flake8-ok-files.txt
--- a/cubicweb/etwist/twconfig.py	Thu Mar 14 17:16:34 2019 +0100
+++ b/cubicweb/etwist/twconfig.py	Thu Mar 21 11:47:10 2019 +0100
@@ -38,43 +38,43 @@
     options = merge_options((
         # ctl configuration
         ('port',
-         {'type' : 'int',
+         {'type': 'int',
           'default': None,
           'help': 'http server port number (default to 8080)',
           'group': 'web', 'level': 0,
           }),
         ('interface',
-         {'type' : 'string',
+         {'type': 'string',
           'default': '0.0.0.0',
           'help': 'http server address on which to listen (default to everywhere)',
           'group': 'web', 'level': 1,
           }),
         ('max-post-length',
-         {'type' : 'bytes',
+         {'type': 'bytes',
           'default': '100MB',
           'help': 'maximum length of HTTP request. Default to 100 MB.',
           'group': 'web', 'level': 1,
           }),
         ('profile',
-         {'type' : 'string',
+         {'type': 'string',
           'default': None,
           'help': 'profile code and use the specified file to store stats if this option is set',
           'group': 'web', 'level': 3,
           }),
         ('host',
-         {'type' : 'string',
+         {'type': 'string',
           'default': None,
           'help': 'host name if not correctly detectable through gethostname',
           'group': 'main', 'level': 1,
           }),
         ('pid-file',
-         {'type' : 'string',
+         {'type': 'string',
           'default': Method('default_pid_file'),
           'help': 'repository\'s pid file',
           'group': 'main', 'level': 2,
           }),
         ('uid',
-         {'type' : 'string',
+         {'type': 'string',
           'default': None,
           'help': 'unix user, if this option is set, use the specified user to start \
 the repository rather than the user running the command',
@@ -87,7 +87,7 @@
 much greater than connection-poolsize",
           'group': 'web', 'level': 3,
           }),
-        ) + WebConfiguration.options)
+    ) + WebConfiguration.options)
 
     def server_file(self):
         return join(self.apphome, '%s-%s.py' % (self.appid, self.name))
@@ -103,8 +103,14 @@
     options = merge_options(WebConfigurationBase.options
                             + ServerConfiguration.options)
 
-    cubicweb_appobject_path = WebConfigurationBase.cubicweb_appobject_path | ServerConfiguration.cubicweb_appobject_path
-    cube_appobject_path = WebConfigurationBase.cube_appobject_path | ServerConfiguration.cube_appobject_path
+    cubicweb_appobject_path = (
+        WebConfigurationBase.cubicweb_appobject_path
+        | ServerConfiguration.cubicweb_appobject_path
+    )
+    cube_appobject_path = (
+        WebConfigurationBase.cube_appobject_path
+        | ServerConfiguration.cube_appobject_path
+    )
 
 
 CONFIGURATIONS.append(AllInOneConfiguration)
--- a/flake8-ok-files.txt	Thu Mar 14 17:16:34 2019 +0100
+++ b/flake8-ok-files.txt	Thu Mar 21 11:47:10 2019 +0100
@@ -27,6 +27,7 @@
 cubicweb/etwist/__init__.py
 cubicweb/etwist/request.py
 cubicweb/etwist/service.py
+cubicweb/etwist/twconfig.py
 cubicweb/ext/__init__.py
 cubicweb/ext/test/unittest_rest.py
 cubicweb/hooks/synccomputed.py