-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.17 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
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/common
stages: [ commit ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1
hooks:
- id: mypy
files: ^pantos/common
args: ['--namespace-packages', '--explicit-package-bases' ]
additional_dependencies: ['types-requests', 'types-PyYAML', 'web3[tester]']
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 ]