forked from cloudsmith-io/cloudsmith-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
70 lines (67 loc) · 1.65 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
# Pre-Commit hooks
# See: https://pre-commit.com/hooks.html
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: debug-statements
- id: end-of-file-fixer
exclude: >
(?x)^(
\.bumpversion\.cfg
)$
- id: check-merge-conflict
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-builtin-literals
- id: check-json
- id: check-symlinks
- id: check-yaml
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- id: detect-private-key
exclude: >
(?x)^(
.bumpversion.cfg
)$
- id: fix-encoding-pragma
- id: forbid-new-submodules
- id: trailing-whitespace
- id: name-tests-test
args: ['--django']
exclude: >
(?x)^(
cloudsmith/.*/tests/apps\.py|
cloudsmith/.*/tests/enums\.py|
cloudsmith/.*/tests/factories\.py|
cloudsmith/.*/tests/forms\.py|
cloudsmith/.*/tests/models\.py|
cloudsmith/.*/tests/mixins\.py|
cloudsmith/.*/tests/utils\.py|
cloudsmith/.*/tests/views\.py
)$
- id: flake8
exclude: >
(?x)^(
cloudsmith/.*/tests/.*|
cloudsmith/.*/migrations/.*|
cloudsmith/settings/.*
)$
args: ['--config=.flake8']
language_version: python3.6
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black
language_version: python3.6
- repo: https://github.com/asottile/seed-isort-config
rev: v1.7.0
hooks:
- id: seed-isort-config
language_version: python3.6
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.15
hooks:
- id: isort
language_version: python3.6