-
Notifications
You must be signed in to change notification settings - Fork 23
/
.pre-commit-config.yaml
49 lines (41 loc) · 1.04 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
exclude: '^$'
fail_fast: false
repos:
- repo: local
hooks:
- id: isort
args: ['--check-only', '--settings', '.isort.cfg']
exclude: tweepy
name: isort
entry: isort
language: system
types: [python]
stages: [commit]
- id: flake8
exclude: /(_plugin_template|python_twitter|migrations|tweepy)/
name: flake8
entry: flake8
language: system
types: [python]
stages: [commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
# - id: double-quote-string-fixer
# stages: [commit]
- id: debug-statements
stages: [commit]
- id: end-of-file-fixer
exclude: .bumpversion.cfg
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- id: check-case-conflict
stages: [commit]
- repo: https://github.com/saxix/pch
rev: fc387f4
hooks:
- id: check-missed-migrations
args:
- src
stages: [commit]