-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
executable file
·78 lines (67 loc) · 1.75 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
exclude: '^$'
fail_fast: false
repos:
- repo: local
hooks:
- id: ci-cache-key
name: update ci-cache-key
entry: sh .hooks/pre-commit.sh
language: system
stages: [commit]
files: Poetry.lock
- id: isort
args:
- --check-only
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/Yelp/detect-secrets
rev: 0.9.1
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: (tests/.*|.*/tenant\.sql|Pipfile\.lock|.*\.js|.gitlab-ci.yml|poetry.lock)
stages: [push]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: double-quote-string-fixer
stages: [commit]
- id: debug-statements
exclude: (_plugin_template|python_twitter)
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-version-release-match
args:
- --pythonpath=src
- --package=djaxei
stages: [push]
- id: check-untracked
args:
- src
- tests
stages: [push]
- id: check-forbidden
args:
- -p
- \.showbrowser\(
stages: [commit]