forked from frappe/ecommerce_integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
48 lines (41 loc) · 1.11 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
exclude: 'node_modules|.git'
default_stages: [commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
files: "ecommerce_integrations.*"
- id: end-of-file-fixer
files: "ecommerce_integrations.*"
exclude: ".*json$|.*txt$"
- id: check-yaml
- repo: https://github.com/adityahase/black
rev: 364d1ddcf58eb6bad2e0b757329f06f40ea83044
hooks:
- id: black
exclude: ".*setup.py$"
- repo: https://github.com/timothycrosley/isort
rev: 5.9.1
hooks:
- id: isort
exclude: ".*setup.py$"
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [flake8-isort]
exclude: ".*setup.py$"
- repo: https://github.com/returntocorp/semgrep
rev: 'v0.57.0'
hooks:
- id: semgrep
name: Semgrep
types: [python]
exclude: "^test_.+$$"
args: ['--config', '.github/helper/semgrep_rules', '--error']
ci:
autoupdate_schedule: weekly
skip: []
submodules: false