forked from siliconflow/BizyAir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
35 lines (34 loc) · 905 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
34
35
exclude: \.txt$
repos:
- repo: local
hooks:
- id: sort-imports
name: Sort imports
entry: python3 -m isort --profile black .
language: system
types: [python]
- id: format-code
name: Format code
entry: python3 -m black .
language: system
types: [python]
- id: flake8-code-check
name: Code Quality Check
entry: python3 -m flake8 .
language: system
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-toml
- id: check-yaml
exclude: ^docs/mkdocs\.yml$
args:
- --allow-multiple-documents
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer