Ignore new B902 warnings from flake8

These warnings are worth addressing eventually, but they shouldn't be
blockers for now.

The warnings are:

  autospec/abireport.py:59:1: B902 blind except Exception: statement
  autospec/abireport.py:73:1: B902 blind except Exception: statement
  autospec/abireport.py:128:1: B902 blind except Exception: statement
  autospec/abireport.py:165:1: B902 blind except Exception: statement
  autospec/abireport.py:191:1: B902 blind except Exception: statement
  autospec/abireport.py:237:1: B902 blind except Exception: statement
  autospec/abireport.py:262:1: B902 blind except Exception: statement
  autospec/abireport.py:273:1: B902 blind except Exception: statement
  autospec/autospec.py:237:1: B902 blind except Exception: statement
  autospec/autospec.py:307:1: B902 blind except Exception: statement
  autospec/build.py:177:1: B902 blind except Exception: statement
  autospec/buildreq.py:563:1: B902 blind except Exception: statement
  autospec/buildreq.py:600:1: B902 blind except Exception: statement
  autospec/buildreq.py:689:1: B902 blind except Exception: statement
  autospec/buildreq.py:713:1: B902 blind except Exception: statement
  autospec/buildreq.py:735:1: B902 blind except Exception: statement
  autospec/commitmessage.py:51:1: B902 blind except Exception: statement
  autospec/commitmessage.py:293:1: B902 blind except Exception: statement
  autospec/config.py:475:1: B902 blind except Exception: statement
  autospec/config.py:821:1: B902 blind except Exception: statement
  autospec/pkg_integrity.py:551:1: B902 blind except Exception: statement
  autospec/pkg_integrity.py:669:1: B902 blind except Exception: statement
  autospec/pkg_integrity.py:765:1: B902 blind except Exception: statement

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2021-01-28 20:36:19 +00:00
parent 8ea14de842
commit 06dd69f747
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
check: autospec/*.py
@flake8 --ignore=D100,I201 $^
@flake8 --ignore=B902,D100,I201 $^
test_download:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_download.py

View File

@@ -9,4 +9,4 @@ omit = tests/*,*site-packages*,*site.py
[flake8]
max-line-length = 199
ignore = E722, W503
ignore = B902, E722, W503