Skip to content

Commit f7cedc9

Browse files
gh-170: add traditional pre-commit-hooks (#235)
Adds several misc `pre-commit-hooks` recommended by scientific python. Refs: #170, #187 --------- Co-authored-by: Patrick J. Roddy <patrickjamesroddy@gmail.com>
1 parent a101ab4 commit f7cedc9

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/test-constraints.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
--prefer-binary
21
--only-binary numpy,scipy,healpy,healpix
2+
--prefer-binary

.pre-commit-config.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-symlinks
9+
- id: check-yaml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- id: mixed-line-ending
13+
args:
14+
- --fix=lf
15+
- id: trailing-whitespace
216
- repo: https://github.com/pre-commit/pygrep-hooks
317
rev: v1.10.0
418
hooks:

0 commit comments

Comments
 (0)