forked from voithru/voice-activity-detection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
36 lines (33 loc) · 1.12 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 21.4b2 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: sort-simple-yaml
- id: requirements-txt-fixer
- id: check-json
- repo: local
hooks:
# HACK:
# impossible to use a remote pytest for pre-commit.
# because remote repository must contains `.pre-commit-hooks.yaml` for pre-commit
# but, currently(2021.04.29) pytest repository does not have `.pre-commit-hooks.yaml`
- id: pytest
name: pytest
entry: sh -c "source .env.sh && python3 -m pytest --cov=vad tests/"
language: system
pass_filenames: false
always_run: true
verbose: true