added pre-commit hook to check passing pep8, tests

requires the precommit file to be linked in, see `readme.md`