Add quality assurance to makefile and pre-commit