forked from solaluset/DandelionMusic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (36 loc) · 1.04 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: ["-l", "79"]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: local
hooks:
- id: check-jsonc
name: check-jsonc
description: 'Check JSON with comments'
entry: python -c 'import sys, jsonc; jsonc.load(open(sys.argv[1]))'
language: python
types: [json]
require_serial: true
additional_dependencies: &jsonc
- "json-with-comments==1.2.1"
- id: update-dockerfile
name: update-dockerfile
description: 'Update env vars in Dockerfile'
entry: python -m config.update_dockerfile
files: ^config/config\.py$
language: python
require_serial: true
additional_dependencies: *jsonc