From 3771af7457b1c552ccac55abdde4f75041b319c3 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 30 May 2022 21:59:39 -0700 Subject: [PATCH] Add a kludge to get workaround a bug in the pytypes pre-commit wrapper. The pre-commit pytypes wrapper we're using has a bug. When only unittest files are in the commit, pytype is invoked with no files: https://github.com/mattseymour/pre-commit-pytype/issues/4 Workaround this for now by adding the suds directory to the arguments for pytype. This is a bit to heavyweight to be a good general solution so hopefully the author will find a better way (or I could add a pytpe hook to captain_hooks) --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ef6478f..63d9701 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,6 +46,9 @@ repos: - id: pytype additional_dependencies: - pydantic + - pytest + args: + - suds - repo: https://github.com/pre-commit/pygrep-hooks rev: "v1.9.0" hooks: