-
Notifications
You must be signed in to change notification settings - Fork 20
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.09 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
repos:
# github will run `pre-commit run --hook-stage manual -a` and then manually black and flake8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
stages: [commit, push, manual]
- id: check-json
stages: [commit, push, manual]
- id: end-of-file-fixer
stages: [commit, push, manual]
- id: trailing-whitespace
stages: [commit, push, manual]
- repo: local
hooks:
- id: isort
name: isort
entry: isort --profile black
language: system
types: [python]
stages: [commit, push, manual]
- id: black
name: black
entry: black
language: system
types: [python]
stages: [commit, push, manual]
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
stages: [commit, push, manual]
- id: tests
name: pytest
entry: pytest
pass_filenames: false
language: system
types: [python]
stages: [commit, push, manual]