-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
.pre-commit-config.yaml
58 lines (54 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
54
55
56
57
58
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: original
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
# - id: double-quote-string-fixer
- id: check-yaml
# - id: check-added-large-files
- id: requirements-txt-fixer
# - id: name-tests-test
# args: ["--django"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
- repo: local
hooks:
- id: isort
name: Run isort
entry: isort
language: python
args: ["--profile", "google", "--filter-files"]
types: [file, python]
- id: black
name: Run black
entry: black
language: python
types: [file, python]
- id: flake8
name: Run flake8
entry: flake8
language: python
additional_dependencies: [flake8-bugbear]
types: [file, python]
- id: mypy
name: Run mypy
entry: mypy
language: python
types: [file, python]
- id: pyupgrade
name: Run pyupgrade
entry: pyupgrade
language: python
args: ["--py39-plus"]
types: [file, python]