Skip to content

Commit

Permalink
Add pyi and cython file support to .pre-commit-hooks.yaml
Browse files Browse the repository at this point in the history
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:
pre-commit/pre-commit#607

Fixes #402
  • Loading branch information
jdufresne committed Dec 19, 2020
1 parent c0b987d commit eb7b916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Expand Up @@ -4,5 +4,5 @@
require_serial: true
language: python
language_version: python3
types: [python]
types_or: [cython, pyi, python]
args: ['--filter-files']

0 comments on commit eb7b916

Please sign in to comment.