forked from pocc/pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (51 loc) · 1.59 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
# This file configures https://pre-commit.com/
# Based on pre-commit hooks in
# https://github.com/pre-commit/pre-commit-hooks
# https://github.com/jumanjihouse/pre-commit-hooks
# to use specific hooks and options.
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 1f6de3d70391131fac4b911ae913c568e571e34e
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: \.cp?p?$
- id: check-docstring-first
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/pre-commit
rev: b8300268bf2d8797f28edf9063d7e5659ad4d535
hooks:
- id: validate_manifest
- repo: https://github.com/asottile/reorder_python_imports
rev: bc7b5b2f0fde191c9d0121588ef9bbb79f8e5e21
hooks:
- id: reorder-python-imports
language_version: python3
- repo: https://github.com/asottile/pyupgrade
rev: v1.16.1
hooks:
- id: pyupgrade
- repo: https://github.com/ambv/black
rev: cea13f498418784e22f8fbd78db3f9240a2bad11
hooks:
- id: black
args: ["-l", "79"]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 1.11.0
hooks:
- id: shellcheck
args: ["--color=always", "--shell=bash", "-x", "-a", "--exclude=SC1090"]
additional_dependencies: [shellcheck]
- repo: local
hooks:
- id: tests
name: tests
entry: tests/run_tests.sh
description: Tests expected output of all 3 scripts
language: script
files: \.py$