-
Notifications
You must be signed in to change notification settings - Fork 26
/
.pre-commit-config.yaml
33 lines (29 loc) · 943 Bytes
/
.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
# For more information: https://pre-commit.com
# Additional hooks: https://pre-commit.com/hooks.html
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
# Below is python regex to exclude all .md files
exclude: .*md$
- id: end-of-file-fixer
exclude: Pipfile.lock
- id: check-added-large-files
args: ['--maxkb=5000']
- id: check-json
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-pyproject]
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
args: ['--line-length=110', '--skip-magic-trailing-comma', '--skip-string-normalization']
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)