-
Notifications
You must be signed in to change notification settings - Fork 251
/
Copy path.pre-commit-config.yaml
52 lines (52 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
45
46
47
48
49
50
51
52
repos:
- repo: local
hooks:
- id: profile-check
name: no profiling
entry: '@profile'
language: pygrep
types: [ python ]
- id: print-check
name: no print statements
entry: '\bprint\('
language: pygrep
types: [ python ]
files: ^montreal_forced_aligner/
exclude: ^montreal_forced_aligner/command_line/transcribe.py
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
- pyproject-flake8
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
additional_dependencies: [toml]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
hooks:
- id: setup-cfg-fmt
args:
- --min-py3-version
- "3.8"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb=2000']
- id: mixed-line-ending