Add E722 and E741 flake errors to the ignore list

Also fixed 'E704 multiple statements on one line (def)' in python_api
This commit is contained in:
Bruno Oliveira 2017-10-23 18:19:15 -02:00
parent 655ab0bf8b
commit a3ec3df0c8
2 changed files with 7 additions and 1 deletions

View File

@ -217,7 +217,8 @@ class ApproxScalar(ApproxBase):
absolute tolerance or a relative tolerance, depending on what the user
specified or which would be larger.
"""
def set_default(x, default): return x if x is not None else default
def set_default(x, default):
return x if x is not None else default
# Figure out what the absolute tolerance should be. ``self.abs`` is
# either None or a value specified by the user.

View File

@ -213,3 +213,8 @@ filterwarnings =
[flake8]
max-line-length = 120
exclude = _pytest/vendored_packages/pluggy.py
ignore=
# do not use bare except'
E722
# ambiguous variable name 'l'
E741