-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (33 loc) · 1019 Bytes
/
.pre-commit-config.yaml
File metadata and controls
36 lines (33 loc) · 1019 Bytes
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: mypy
name: Run mypy
entry: mypy
language: system
files: ^antarest/
types: [python]
- repo: local
hooks:
- id: ruff-format
name: Ruff format
entry: ruff
args: ["format", "antarest", "tests"]
language: system
types: [python]
- repo: local
hooks:
- id: ruff-check
name: Ruff check
entry: ruff
args: ["check", "--fix", "antarest", "tests"]
language: system
types: [python]
- repo: local
hooks:
- id: license-check
name: Check license headers
entry: bash -c 'python scripts/license_checker_and_adder.py --path=antarest --action=check-strict && python scripts/license_checker_and_adder.py --path=tests --action=check-strict && python scripts/license_checker_and_adder.py --path=webapp --action=check-strict'
language: system
files: ^(antarest|tests|webapp)/
pass_filenames: false