Skip to content

Commit d4929a3

Browse files
authored
Extend pre-commit hooks with cython-lint (#144)
* Extend pre-commit hooks with cython-lint * update .git-blame-ignore-revs
1 parent 57c4c52 commit d4929a3

File tree

4 files changed

+377
-149
lines changed

4 files changed

+377
-149
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22

33
# Add pre-commit hooks
44
2e1b33fcf6b7f0c7c9d7d5d7f55d2d0ba35f393a
5+
6+
# Add cython-lint to pre-commit config
7+
5df98187dda56f6d340f0824570fe5080d0b4f05

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ repos:
2727
- id: clang-format
2828
args: ["-i"]
2929

30+
- repo: https://github.com/MarcoGorelli/cython-lint
31+
rev: v0.16.6
32+
hooks:
33+
- id: cython-lint
34+
- id: double-quote-cython-strings
35+
3036
- repo: https://github.com/pycqa/flake8
3137
rev: 7.1.2
3238
hooks:

0 commit comments

Comments
 (0)