-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pre-commit-config.yaml
44 lines (38 loc) · 1.03 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
exclude: 'node_modules|.git'
default_stages: [commit]
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
files: "restipie.*"
exclude: ".*json$|.*txt$|.*csv|.*md"
- id: check-yaml
- id: no-commit-to-branch
args: ['--branch', 'master']
- id: check-merge-conflict
- id: check-ast
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args: ['--config', '.flake8']
exclude: ".*setup.py$"
- repo: https://github.com/returntocorp/semgrep
rev: v0.66.0
hooks:
- id: semgrep
files: ''
args: ['--config', '.github/helper/semgrep_rules', '--error']
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.18.1
hooks:
- id: commitizen
stages: [commit-msg]
# - repo: https://github.com/pycqa/isort
# rev: 5.8.0
# hooks:
# - id: isort
# name: isort (python)
# exclude: ".*setup.py$"