This MR adds pre-commit support to this package, with checks for syntax, import usage and many more.