Skip to content

Commit

Permalink
gh-170: add traditional pre-commit-hooks (#235)
Browse files Browse the repository at this point in the history
Adds several misc `pre-commit-hooks` recommended by scientific python.

Refs: #170, #187

---------

Co-authored-by: Patrick J. Roddy <[email protected]>
  • Loading branch information
Saransh-cpp and paddyroddy authored Sep 18, 2024
1 parent a101ab4 commit f7cedc9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/test-constraints.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--prefer-binary
--only-binary numpy,scipy,healpy,healpix
--prefer-binary
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args:
- --fix=lf
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
Expand Down

0 comments on commit f7cedc9

Please sign in to comment.