Add pip-missing-reqs tox env
It checks that all of the imported from sahara requirements directly specified in the requirements.txt file. It's needed to keep all of our requirements corresponding to imports in code. Sample output - https://gist.github.com/Frostman/bbc00bd386f317a1160e Change-Id: I7f792fb59b07eb1a6cb7cd51a1ff0e759da6f68c
This commit is contained in:
parent
c3eca114c2
commit
62fe1a1af0
10
tox.ini
10
tox.ini
|
@ -60,6 +60,16 @@ commands = bash tools/lintstack.sh
|
|||
commands =
|
||||
bash tools/config/generate_sample.sh -b . -p sahara -o etc/sahara
|
||||
|
||||
[testenv:pip-missing-reqs]
|
||||
# do not install test-requirements as that will pollute the virtualenv for
|
||||
# determining missing packages
|
||||
# this also means that pip-missing-reqs must be installed separately, outside
|
||||
# of the requirements.txt files
|
||||
deps =
|
||||
pip_missing_reqs
|
||||
-r{toxinidir}/requirements.txt
|
||||
commands = pip-missing-reqs -d --ignore-file=sahara/tests/* sahara
|
||||
|
||||
[flake8]
|
||||
show-source = true
|
||||
builtins = _
|
||||
|
|
Loading…
Reference in New Issue