Skip to content

Commit

Permalink
Let pre-commit sort pxd files too
Browse files Browse the repository at this point in the history
In PyCQA#1494, it looks like support for `.pxd` files was added. However, these are currently ignored when running isort in pre-commit because there is `types: [python]`
  • Loading branch information
MarcoGorelli committed Oct 8, 2020
1 parent ba43b3c commit 49878c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pre-commit-hooks.yaml
Expand Up @@ -3,5 +3,6 @@
entry: isort
require_serial: true
language: python
types: [python]
files: '.pxd$|.py$'
types: [file]
args: ['--filter-files']

0 comments on commit 49878c5

Please sign in to comment.