Skip to content

Commit 32e3590

Browse files
committed
Add pre-commit-elisp hooks
1 parent 2459f44 commit 32e3590

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.dir-locals.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
;; pre-commit-elisp .dir-locals.el - https://github.com/jamescherti/pre-commit-elisp
2+
((nil . ((pre-commit-elisp-error-on-compile-warning . t))))

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v2.3.0
6+
hooks:
7+
- id: check-yaml
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
11+
- repo: https://github.com/jamescherti/pre-commit-elisp
12+
rev: v1.0.8
13+
hooks:
14+
- id: elisp-check-parens
15+
- id: elisp-check-byte-compile
16+
exclude: '\.dir-locals\.el$'

0 commit comments

Comments
 (0)