-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.01 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
fail_fast: true
default_language_version:
python: python3.8
default_stages: [pre-commit, pre-push]
repos:
- repo: local
hooks:
- id: lint_package_update
name: Update package for lint environment
entry: hatch run lint:install-packages
pass_filenames: false
language: system
stages: [pre-commit]
types:
- "python"
- 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:
- "javascript"