forked from OpenCTI-Platform/connectors
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (32 loc) · 894 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
32 lines (32 loc) · 894 Bytes
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
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
- id: flake8
args: ['--ignore=E,W']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- repo: https://github.com/pycqa/isort
rev: 7.0.0
hooks:
- id: isort
name: isort (python)
args:
- '--profile'
- 'black'
- '--line-length'
- '88'
- repo: local
hooks:
- id: gpg-signed-commit
name: GPG Signed Commit Check
entry: bash -c 'for commit_sha in $(git log --pretty=%h master..); do git verify-commit "$commit_sha" || echo "error unsigned commit $commit_sha" && exit 1; done'
language: system
stages: [pre-push, manual]
minimum_pre_commit_version: '3.2.0'