forked from pantos-io/validatornode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (39 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: no-commit-to-branch
name: Check that branch name follows our standard
description: Checks that a branch has a proper name
args: ['--branch', 'main','--pattern', '^(?![a-zA-Z0-9._-]+)']
stages: [ commit-msg ]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
files: ^pantos/validatornode
stages: [ commit ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1
hooks:
- id: mypy
files: ^pantos/validatornode
additional_dependencies: ['types-requests', 'types-PyYAML']
stages: [ commit ]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
alias: format
args: ['--force-single-line-imports' ]
stages: [ commit ]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
alias: lint
args:
- --quiet
- --format=custom
- --configfile=.bandit
stages: [ commit ]