Skip to content

Commit 8c28676

Browse files
committedNov 28, 2017
Adding precommit hooks
1 parent f017bc8 commit 8c28676

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
 

‎.pre-commit-config.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- repo: git://github.com/pre-commit/pre-commit-hooks
2+
sha: v1.1.1 # Use the ref you want to point at
3+
hooks:
4+
- id: trailing-whitespace
5+
- id: flake8
6+
- id: check-added-large-files
7+
- id: check-executables-have-shebangs
8+
- id: detect-private-key

‎tools/activate_hooks.ch

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
pip install pre-commit
3+
pre-commit install

0 commit comments

Comments
 (0)
Please sign in to comment.