From f10fa44eedbba84a3f0bc7a7fdfc2af7cb602867 Mon Sep 17 00:00:00 2001 From: nir0s Date: Fri, 20 Nov 2020 23:15:51 +0200 Subject: [PATCH] Add pre-commit config --- .pre-commit-config.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .pre-commit-config.yaml 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]