-
Notifications
You must be signed in to change notification settings - Fork 67
/
.pre-commit-config.yaml
47 lines (46 loc) · 1.39 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
---
# 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: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 1f6de3d70391131fac4b911ae913c568e571e34e
hooks:
- id: trailing-whitespace
exclude: \.output
- id: end-of-file-fixer
exclude: \.(cp?p?$|output)
- id: check-docstring-first
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
rev: bc7b5b2f0fde191c9d0121588ef9bbb79f8e5e21
hooks:
- id: reorder-python-imports
language_version: python3
- repo: https://github.com/pre-commit/pre-commit
rev: v2.16.0
hooks:
- id: validate_manifest
- 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", "120"]
- repo: local
hooks:
- id: tests
name: tests
entry: bash -c "pip install . && pytest -v -xxx"
description: Tests expected output of all scripts
language: system
types: [python]