-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
44 lines (44 loc) · 1.36 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
repos:
- repo: https://github.com/ambv/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args:
- "--max-line-length=79"
- "--max-complexity=18"
- "--ignore=E501,W503,E203,F401,D400,D205,D401,D202,T001,D105"
additional_dependencies:
[
"flake8-bugbear==23.9.16",
"flake8-coding==1.3.2",
"flake8-comprehensions==3.14.0",
"flake8-debugger==4.1.2",
"flake8-deprecated==2.2.1",
"flake8-pep3101==2.1.0",
"flake8-polyfill==1.0.2",
"flake8-print==5.0.0",
"flake8-string-format==0.3.0",
"flake8-docstrings==1.7.0",
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: forbid-new-submodules
- id: mixed-line-ending
args: [ '--fix=lf' ]
description: Forces to replace line ending by the UNIX 'lf' character.
- id: pretty-format-json
args: [ '--no-sort-keys' ]
exclude: '.*.ipynb'
- id: no-commit-to-branch
args: [ --branch, master ]
- id: no-commit-to-branch
args: [ --branch, main ]