Commit f0a152ed authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

[tox] update flake8 rules

parent 91a3c1e6e014
......@@ -14,8 +14,7 @@ from logilab.mtconverter import xml_escape
from cubicweb.schema import display_name
from cubicweb.utils import UStringIO
from cubicweb.web.views import basetemplates, \
basecomponents, actions
from cubicweb.web.views import basetemplates, basecomponents, actions
from cubicweb.web.views.boxes import SearchBox
......@@ -104,7 +103,8 @@ def state_header(self):
_ = self._cw._
value = self._cw.view('oneline', self._cw.eid_rset(state[1][1]))
target, eid, r_type, searched_type = self._cw.search_state[1]
cancel_link = u'<a href="%(url)s" role="button" class="btn btn-default" title="%(title)s">%(title)s</a>' % {
cancel_link = u'''<a href="%(url)s" role="button"
class="btn btn-default" title="%(title)s">%(title)s</a>''' % {
'url': self._cw.build_url(str(eid),
vid='edition', __mode='normal'),
'title': _('cancel')}
......@@ -217,11 +217,11 @@ def get_components(self, view, context): # noqa: F811
basetemplates.HTMLPageHeader.get_components = get_components
basetemplates.HTMLPageHeader.css = {
'navbar-extra': 'navbar-default',
'breadcrumbs': 'cw-breadcrumb',
'navbar-extra': 'navbar-default',
'breadcrumbs': 'cw-breadcrumb',
'container-cls': basetemplates.TheMainTemplate.twbs_container_cls,
'header-left': '',
'header-right': 'navbar-right',
'header-left': '',
'header-right': 'navbar-right',
}
......
......@@ -38,7 +38,5 @@ class HideAsidesBar(HeaderComponent):
w(u'''<button class="btn btn-default navbar-btn" id="cw-aside-toggle"
onclick="cw.cubes.squareui.toggleLeftColumn()" title="%(label)s">
<span class="%(icon_class)s"></span>
</button>''' % {
'icon_class': self.icon_css_cls,
'label': self._cw._('collapse boxes')
})
</button>''' % {'icon_class': self.icon_css_cls,
'label': self._cw._('collapse boxes')})
......@@ -21,5 +21,8 @@ deps =
commands = flake8
[flake8]
max-line-length=120
exclude = test/data/*,.tox/*,doc/*
\ No newline at end of file
basepython = python3
format = pylint
ignore = W503, E203, E731, E231
max-line-length = 100
exclude = doc/*,.tox/*,./test/data/*
\ No newline at end of file
Supports Markdown
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