Skip to content

Commit cfdacae

Browse files
committed
Add pre-commit
This is the configuration for pre-commit (https://pre-commit.com/#installation). It's an optional way of running pre-commit hooks. It won't force anyone to use it, but for those who do it offers a simple way to check linting before committing
1 parent d2f50d9 commit cfdacae

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- repo: https://github.com/mattlqx/pre-commit-ruby
8+
rev: v1.3.6
9+
hooks:
10+
- id: rubocop
11+
- id: rspec

0 commit comments

Comments
 (0)