-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
38 lines (38 loc) · 1.25 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
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: python create_materials.py && exit 0
pass_filenames: false
verbose: true
files: ^materials/sources/|create_materials.py
- id: recreate-runtime-date
name: recreate-runtime-date
language: system
entry: npm run build:runtime-data && 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
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