forked from instadeepai/Mava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
58 lines (50 loc) · 1.42 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
53
54
55
56
57
58
# Pre-commit hooks for repo.
# Packages:
# pre-commit: General pre-commits for formatting.
# black: Python code strict formatting.
# pyupgrade: Upgrade syntax for newer versions of the language.
# isort: Sorts imports.
# flake8: Checks code follows PEP8 standard.
# mypy: Static typing.
# blacken-docs: Checks docs follow black format standard.
default_stages: ["commit", "push"]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude_types: [image]
- id: check-merge-conflict
- id: debug-statements
- id: mixed-line-ending
- id: check-yaml
- repo: https://github.com/psf/black
rev: 21.4b1
hooks:
- id: black
exclude_types: [image]
- repo: https://github.com/asottile/pyupgrade
rev: v2.10.0
hooks:
- id: pyupgrade
- repo: https://github.com/timothycrosley/isort
rev: 5.7.0
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.1
hooks:
- id: flake8
additional_dependencies: [flake8-isort]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
exclude: ^docs/
args: [--config-file=mypy.ini]
- repo: https://github.com/asottile/blacken-docs
rev: v1.8.0
hooks:
- id: blacken-docs
additional_dependencies: [black==20.8b1]