Skip to content

Commit 4622b68

Browse files
committed
Add .pre-commit-config.yaml
1 parent 8ee8c3a commit 4622b68

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ Example:
1515
- [ ] Code compiles correctly
1616
- [ ] Created tests which fail without the change (if possible)
1717
- [ ] All tests passing
18-
- [ ] Extended the README / documentation, if necessary
18+
- [ ] Extended the README / documentation, if necessary

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ autolabeler:
4242
- '/fix/i'
4343
- label: 'deprecation'
4444
title:
45-
- '/deprecate/i'
45+
- '/deprecate/i'

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.6.0
5+
hooks:
6+
- id: trailing-whitespace
7+
- id: end-of-file-fixer
8+
- id: check-yaml
9+
- id: check-added-large-files
10+
- id: check-merge-conflict
11+
- id: check-json
12+
- id: check-case-conflict
13+
- id: mixed-line-ending
14+
args: ['--fix=lf']
15+
- id: forbid-submodules

0 commit comments

Comments
 (0)