-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (39 loc) · 1.03 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (39 loc) · 1.03 KB
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
fail_fast: true
repos:
- repo: local
hooks:
- id: pylint
name: Local PyLint
language: system
require_serial: true
types:
- python
exclude: "^[^/]*env/|dev-[^/]*/"
entry: pylint -j 0
- id: mypy
name: Local MyPy
language: system
types:
- python
# files: \.py$
exclude: "^[^/]*env/|dev-[^/]*/"
require_serial: true
entry: mypy --strict --show-error-codes --no-warn-unused-ignores
- repo: https://github.com/inab/python-extended-json-schema-validator.git
rev: v0.11.0
hooks:
# - id: identity
- id: jsonschema_dir_validate
name: Check jsonschema
types:
- json
files: ^oeb_level2/schemas/.*\.json$
require_serial: true
pass_filenames: false
args: [ oeb_level2/schemas ]
# - repo: https://github.com/ambv/black
# rev: 22.6.0
# hooks:
# - id: black
# exclude: "^[^/]*env/|dev-[^/]*/"
# args: [--diff, --check]