Skip to content

Add pre-commit hooks #13

@northdpole

Description

@northdpole

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions