-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
37 lines (35 loc) · 1.22 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# pre-commit configuration file
#
# TL;DR
# pre-commit runs a series of formatters and linters on every commit.
# If throws an error, it's usually already fixed the problem and just
# wants you to have a look at the changes it made.
# This file sets up pre-commit to do some basic checks, fix whitespace
# and line endings, and run stylish-haskell.
# To setup the pre-commit hooks, you'll need pre-commit, and install the
# hooks by running `pre-commit install` from the repository root.
#
# See: https://pre-commit.com
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-vcs-permalinks
- id: check-yaml
- id: destroyed-symlinks
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: fix-byte-order-marker
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
# Exclude generated docs:
exclude: ^docs/.*\.html$