Added pre-commit library for git hooks

Will run checks before every commit.

To install run `pip install -r requirements.txt` and then run `pre-commit install`