-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (32 loc) · 1.02 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
36 lines (32 loc) · 1.02 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
repos:
- repo: local
hooks:
- id: ruff
name: ruff
entry: ruff check --fix
language: system
types: [python]
pass_filenames: true
- id: ruff-format
name: ruff-format
entry: ruff format
language: system
types: [python]
pass_filenames: true
- id: mypy
name: mypy
entry: bash -c "cd prove-py && mypy src/ --config-file=pyproject.toml"
language: system
pass_filenames: false
- id: sync-lexers
name: sync-lexers
entry: python3 scripts/sync_lexers.py --check
language: system
pass_filenames: false
files: (keywords\.toml|tree-sitter-prove/grammar\.js|chroma-lexer-prove/.*\.go|pygments-prove/.*\.py)
- id: sync-checks
name: sync-checks
entry: bash -c "cd prove-py && python -m pytest tests/test_diagnostic_links.py tests/test_runtime_functions_sync.py -x -q"
language: system
pass_filenames: false
stages: [pre-push]