diff --git a/README.rst b/README.rst index 2295ca4e05..7f6c33d417 100644 --- a/README.rst +++ b/README.rst @@ -71,6 +71,16 @@ requirements is produced. If the inputs are lower-constraints.txt, the output includes the highest version of each package referenced in the files. +check-requirements +------------------ + +Run the validation checks from the ``requirements-check`` job locally +using the ``requirements-check`` tox environment. + +Run:: + + $ tox -e requirements-check -- /path/to/repo/to/test + Proposing changes ================= diff --git a/tox.ini b/tox.ini index df847ef7b5..e11329b25a 100644 --- a/tox.ini +++ b/tox.ini @@ -95,6 +95,12 @@ basepython = python3.5 [testenv:py36] basepython = python3.6 +[testenv:requirements-check] +basepython = python3 +deps = -r{toxinidir}/requirements.txt +commands = + {toxinidir}/playbooks/files/project-requirements-change.py --local {posargs} + [testenv:babel] # Use the local upper-constraints.txt file deps = Babel