Skip to content

Commit 52f497b

Browse files
committed
ENH: Configure repo to act as pre-commit hook.
1 parent 9a7d8f8 commit 52f497b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- id: check-python-h-first
2+
name: check-python-h-first
3+
entry: check_python_h_first
4+
language: python
5+
types: ["file", "text"]
6+
types_or: ["c", "c++"]
7+
description: >-
8+
Check whether a file includes Python.h first. Accepts
9+
numpy/ndarraytype.h, pybind/pybind.h, and friends as well

0 commit comments

Comments
 (0)