-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1.27 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
repos:
- repo: local
hooks:
- id: recreate-materials
name: recreate-materials
language: system
# TODO: figure out how to make it work in PyCharm, only works in terminal
entry: .venv/bin/python create_materials.py && exit 0
pass_filenames: false
verbose: true
files: ^materials/sources/|create_materials.py
- id: recreate-dist
name: recreate-dist
language: system
entry: npm run build:dist && exit 0
pass_filenames: false
verbose: true
files: ^materials|applications|workflows|properties/
- repo: https://github.com/Exabyte-io/pre-commit-hooks
rev: 2023.8.18
hooks:
# TB temporary disable to avoid firing for autogenerated files
# TODO: figure out how to ignore the files properly and re-enable
# - id: ruff
# - id: black
- id: isort
- id: mypy
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: lint-staged
exclude: "^dist/"
name: lint-staged
language: node
entry: npx lint-staged
verbose: true # to see familiar lint-staged output
pass_filenames: false # lint-staged has its own glob expression