From eb7b9163b18469fd2770af1de28c7a886ad1c03d Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 19 Dec 2020 15:23:14 -0800 Subject: [PATCH] Add pyi and cython file support to .pre-commit-hooks.yaml Since pre-commit 2.9.0 (2020-11-21), the types_or key can be used to match multiple disparate file types. For more upstream details, see: https://github.com/pre-commit/pre-commit/issues/607 Fixes #402 --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 160016181..773b505fd 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,5 +4,5 @@ require_serial: true language: python language_version: python3 - types: [python] + types_or: [cython, pyi, python] args: ['--filter-files']