Run lint and tests on pre commit hook