-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
31 lines (31 loc) · 962 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# -------------------- Base --------------------
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
files: .py$
exclude: tests/
- id: end-of-file-fixer
files: .py$
exclude: tests/
- id: check-yaml
- id: check-added-large-files
# -------------------- iSort --------------------
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
# -------------------- Flake8 --------------------
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
args: ['--count', '--statistics', '--exit-zero', ' --show-source']
# -------------------- Manifest --------------------
- repo: https://github.com/mgedmin/check-manifest
rev: '0.49'
hooks:
- id: check-manifest