forked from iiasa/message_ix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (43 loc) · 1.08 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
40
41
42
43
44
45
repos:
- repo: local
hooks:
- id: mypy
name: mypy
always_run: true
require_serial: true
pass_filenames: false
language: python
entry: bash -c ". ${PRE_COMMIT_MYPY_VENV:-/dev/null}/bin/activate 2>/dev/null; mypy $0 $@"
additional_dependencies:
- mypy >= 1.12.0
- asyncssh
- git+https://github.com/iiasa/ixmp.git@main
- importlib_resources
- matplotlib
- pandas-stubs
- pytest
- Sphinx
- types-PyYAML
- types-requests
args: ["."]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
- id: ruff-format
args: [ --check ]
# GitHub Actions workflows
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
name: Validate GitHub Actions workflow YAML
files: '.github/workflows/.*\.ya?ml'
- repo: local
hooks:
- id: validate-github-actions
name: Validate GitHub Actions workflow schema
language: rust
entry: action-validator
additional_dependencies: [ cli:action-validator:0.6.0 ]
files: '.github/workflows/.*\.ya?ml'