Add pre-commit hooks
add pre commit hooks for
black .
mypy --strict --exclude venv/ .
FLASK_APP=cre.py FLASK_CONFIG=test flask test | grep -i FAIL # there has to be a better way to ensure tests pass
if [[ $(FLASK_APP=cre.py FLASK_CONFIG=test flask test --coverage | grep TOTAL | awk '{print $6}' | tr -d "%" ) -lt 70 ]] then
exit 1
fi # there has to be a better way to ensure coverage
hello @northdpole If work on this issue is still needed, could you please assign it to me? I’d be happy to take it on.
Hi could you pls assign this issue to me, I'd would love to work on this....if its still available
Hi, If this issue still persists, could you please assign it to me? I’d be happy to take it on.
Hi is this issue still open . Kindly assign it to me
Hi @northdpole,
Just checking in regarding Issue https://github.com/OWASP/OpenCRE/issues/13 (pre-commit hooks and failing checks). I opened a PR addressing this and incorporated the review feedback that was previously mentioned.
Whenever you have time, I’d appreciate it if you could take another look and let me know if the changes align with what you had in mind.
PR: https://github.com/OWASP/OpenCRE/pull/785 Thanks again for your guidance on this