-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
35 lines (34 loc) · 1.06 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['-f=lf']
- id: double-quote-string-fixer
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
args: ['--config=.flake8', '--tee', '--benchmark']
- repo: https://github.com/ikamensh/flynt/
rev: '0.76'
hooks:
- id: flynt
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
exclude: failure_reason.py
args: [ '--skip-string-normalization' ]
- repo: https://github.com/espressif/conventional-precommit-linter
rev: v1.4.0
hooks:
- id: conventional-precommit-linter
stages: [commit-msg]
args: ['--types=change,ci,docs,feat,fix,refactor,remove,revert,test,perf']
default_stages: [commit]
default_install_hook_types: [pre-commit, commit-msg]