diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..efdd4a0 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,23 @@ +repos: +- repo: local + hooks: + - id: pylint + name: pylint + # Don't wanna deal with tests right now. + entry: pylint --ignore-patterns=test_.*?py + args: ["--score=n"] + language: python + types: [python] + - id: black + name: black + entry: black + language: python + require_serial: true + types: [python] + - id: pytype + name: pytype + entry: pytype + args: ["-d", "import-error"] + language: python + require_serial: true + types: [python]