Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
rqlcontroller
Commits
bb254572ba40
Commit
55f6bcd3
authored
Jul 30, 2021
by
Noé Gaumont
🐙
Browse files
fix: flake8 rules
parent
ab7cabac47ac
Changes
4
Hide whitespace changes
Inline
Side-by-side
cubicweb_rqlcontroller/rql_schema_holder.py
View file @
bb254572
...
...
@@ -17,8 +17,6 @@
import
hashlib
from
logilab.common.decorators
import
cachedproperty
from
cubicweb.utils
import
json_dumps
...
...
cubicweb_rqlcontroller/views.py
View file @
bb254572
...
...
@@ -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
):
...
...
test/unittest_rqlcontroller.py
View file @
bb254572
...
...
@@ -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
...
...
tox.ini
View file @
bb254572
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment