forked from ReadAlongs/Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 1022 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 1022 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: \.svg$
- repo: local
# Using local repos because these won't work for me from remote repo -EJ
# They're also more convenient because we install them via requirements.dev.txt
# and they are then available on the command line as well as in pre-commit.
hooks:
- id: isort
name: isort
entry: isort
language: system
types: [python]
stages: [commit]
- id: black
name: black
entry: black
language: system
types: [python]
stages: [commit]
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
stages: [commit]
- repo: https://github.com/pycqa/flake8
# do flake8 last to avoid duplicate reports
rev: 3.8.3
hooks:
- id: flake8