Files
autospec/Makefile
Patrick McCarty 06dd69f747 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>
2021-01-28 14:14:05 -08:00

57 lines
1.4 KiB
Makefile

check: autospec/*.py
@flake8 --ignore=B902,D100,I201 $^
test_download:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_download.py
test_pkg_integrity:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_pkg_integrity.py
test_tarball:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_tarball.py
test_specfile:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_specfile.py
test_abireport:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_abireport.py
test_commitmessage:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_commitmessage.py
test_files:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_files.py
test_license:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_license.py
test_config:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_config.py
test_build:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_build.py
test_buildreq:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_buildreq.py
test_specdescription:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_specdescription.py
test_count:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_count.py
test_check:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_check.py
test_util:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_util.py
test_general:
PYTHONPATH=${CURDIR}/autospec python3 tests/test_general.py
unittests:
PYTHONPATH=${CURDIR}/autospec coverage run -m unittest discover -b -s tests -p 'test_*.py' && coverage report
coverage:
coverage report -m