forked from art049/odmantic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.48 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.8
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: "^.github/latest-changes.jinja2"
- id: check-yaml
exclude: "^docs/mkdocs.yml"
- id: check-added-large-files
- repo: https://github.com/prettier/prettier
rev: 1.19.1
hooks:
- id: prettier
exclude: "^docs/.*"
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
exclude: "^docs/.*|.github/release.py"
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort.git
rev: "5.6.4"
hooks:
- id: isort
exclude: "^docs/.*"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782
hooks:
- id: mypy
exclude: "^docs/.*"
additional_dependencies:
- pydantic
args: [--no-pretty]
- repo: https://gitlab.com/pycqa/flake8.git
rev: "3.8.3"
hooks:
- id: flake8
exclude: "^docs/.*|.github/release.py"
additional_dependencies:
- darglint~=1.5.4
- repo: https://github.com/pycqa/pydocstyle
rev: 5.1.1 # pick a git hash / tag to point to
hooks:
- id: pydocstyle
files: "^odmantic/"