forked from attzonko/mmpy_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
58 lines (58 loc) · 1.52 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
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: check-symlinks
- id: check-docstring-first
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/pycqa/isort
# Formants, sorts and reorganizes imports
rev: 5.8.0
hooks:
- id: isort
args:
- "--profile"
- "black"
- "--filter-files"
- repo: https://github.com/psf/black
# Code style formatting
rev: 21.5b1
hooks:
- id: black
exclude: (.*/)*snapshots/
- repo: https://gitlab.com/pycqa/flake8
# Checks the code for PEP8 violations and common pitfals
rev: 3.9.0
hooks:
- id: flake8
- repo: https://github.com/mattseymour/pre-commit-pytype
rev: '2020.10.8'
hooks:
- id: pytype
# Don't run pytype in an isolated venv or it will fail on imports
language: system
args:
- "-j"
- "auto"
- repo: https://github.com/myint/docformatter
# Formats docstrings following PEP 257
rev: v1.4
hooks:
- id: docformatter
args:
- "--in-place"
- "--wrap-summaries"
- "88"
- "--wrap-descriptions"
- "88"
- repo: https://github.com/pycqa/doc8
# sphinx rst style checker
rev: 0.9.0a1
hooks:
- id: doc8