Currently, I run
grep -rnI "TODO" foodir
and tox
to check if I can commit. Is there a way to make tox fail if the grep returns something?
Currently, I run
grep -rnI "TODO" foodir
and tox
to check if I can commit. Is there a way to make tox fail if the grep returns something?
exit 1
should be enough. Something like this in tox.ini
:
[testenv]
commands =
grep -FInrq TODO . && exit 1 || exit 0