-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (43 loc) · 1.03 KB
/
.pre-commit-config.yaml
File metadata and controls
44 lines (43 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
43
44
fail_fast: true
default_language_version:
python: python3.10
default_stages:
- commit-msg
- pre-commit
- pre-push
default_install_hook_types:
- pre-commit
- commit-msg
- pre-push
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: local
hooks:
- id: python_style
name: Check Python Style
entry: hatch run lint:style
pass_filenames: false
language: system
stages: [pre-commit]
types:
- "python"
- id: python_typing
name: Check Python Typing
entry: hatch run lint:typing
pass_filenames: false
language: system
stages: [pre-commit]
types:
- "python"
- id: eslint
name: Check JavaScript Style and Typing
entry: npm run lint
pass_filenames: false
language: system
stages: [pre-commit]
types_or: [javascript, jsx, ts, tsx]