-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
65 lines (65 loc) · 2.2 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
65 lines (65 loc) · 2.2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
repos:
- repo: local
hooks:
- id: ruff-format
name: ruff format
entry: ruff format
language: system
files: ^(src|tests|evaluation|scripts).*\.py$
exclude: |
(?x)^(
src/fandango/language/parser/FandangoLexer.py|
src/fandango/language/parser/sa_fandango\.py|
src/fandango/language/parser/.*Parser.*\.py|
src/fandango/converters/antlr/ANTLRv4.*\.py
)$
- repo: local
hooks:
- id: ruff-check
name: ruff check
entry: ruff check --fix
language: system
files: ^(src|tests|evaluation|scripts).*\.py$
exclude: |
(?x)^(
src/fandango/language/parser/FandangoLexer.py|
src/fandango/language/parser/sa_fandango\.py|
src/fandango/language/parser/.*Parser.*\.py|
src/fandango/converters/antlr/ANTLRv4.*\.py
)$
- repo: local
hooks:
- id: mypy
name: mypy (non-strict)
entry: mypy
language: python
files: ^(tests|evaluation|scripts).*\.py$
exclude: |
(?x)^(
src/fandango/language/parser/FandangoLexer.py|
src/fandango/language/parser/sa_fandango\.py|
src/fandango/language/parser/.*Parser.*\.py|
src/fandango/converters/antlr/ANTLRv4.*\.py|
evaluation/protocol_testing_eval/profuzzbench/.*
)$
- id: mypy-strict
name: mypy (strict for src/)
entry: mypy
language: python
args:
- --strict
files: ^src/.*\.py$
exclude: |
(?x)^(
src/fandango/language/parser/FandangoLexer.py|
src/fandango/language/parser/sa_fandango\.py|
src/fandango/language/parser/.*Parser.*\.py|
src/fandango/converters/antlr/ANTLRv4.*\.py|
evaluation/protocol_testing_eval/profuzzbench/.*
)$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.7 # Correspond to uv version
hooks:
- id: uv-lock
- id: uv-export
args: ["--output-file=pylock.toml", "--all-extras", "--locked"]