Commit 55f6bcd3 authored by Noé Gaumont's avatar Noé Gaumont 🐙
Browse files

fix: flake8 rules

parent ab7cabac47ac
......@@ -17,8 +17,6 @@
import hashlib
from logilab.common.decorators import cachedproperty
from cubicweb.utils import json_dumps
......
......@@ -110,10 +110,10 @@ class RqlIOController(Controller):
"""
__regid__ = 'rqlio'
__select__ = (match_http_method('POST') &
match_request_content_type(
'application/json', 'multipart/form-data', mode='any') &
match_form_params('version'))
__select__ = (match_http_method('POST')
& match_request_content_type(
'application/json', 'multipart/form-data', mode='any')
& match_form_params('version'))
require_csrf = False
def json(self):
......
......@@ -15,8 +15,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import json
from six.moves.urllib import parse as urlparse
import requests
from cubicweb.pyramid.test import PyramidCWTest
......
......@@ -11,6 +11,7 @@ commands =
[testenv:flake8]
skip_install = true
basepython = python3
deps =
flake8
commands =
......@@ -27,9 +28,10 @@ commands =
python_files = *test_*.py
[flake8]
exclude = .tox, \
dist \
setup.py
format = pylint
ignore = W503, E203, E731, E231
max-line-length = 100
exclude = cubicweb_rqlcontroller/migration/*,test/data/*,.tox/*
[testenv:pypi-publish]
basepython = python3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment