Skip to content

Commit

Permalink
Add a kludge to get workaround a bug in the pytypes pre-commit wrapper.
Browse files Browse the repository at this point in the history
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:
mattseymour/pre-commit-pytype#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)
  • Loading branch information
abadger committed May 31, 2022
1 parent 2675520 commit 3771af7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3771af7

Please sign in to comment.