Skip to content

Commit a3ec3df

Browse files
committed
Add E722 and E741 flake errors to the ignore list
Also fixed 'E704 multiple statements on one line (def)' in python_api
1 parent 655ab0b commit a3ec3df

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

_pytest/python_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ def tolerance(self):
217217
absolute tolerance or a relative tolerance, depending on what the user
218218
specified or which would be larger.
219219
"""
220-
def set_default(x, default): return x if x is not None else default
220+
def set_default(x, default):
221+
return x if x is not None else default
221222

222223
# Figure out what the absolute tolerance should be. ``self.abs`` is
223224
# either None or a value specified by the user.

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,8 @@ filterwarnings =
213213
[flake8]
214214
max-line-length = 120
215215
exclude = _pytest/vendored_packages/pluggy.py
216+
ignore=
217+
# do not use bare except'
218+
E722
219+
# ambiguous variable name 'l'
220+
E741

0 commit comments

Comments
 (0)