forked from ipspace/netlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (35 loc) · 849 Bytes
/
.pre-commit-config.yaml
File metadata and controls
38 lines (35 loc) · 849 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
37
38
---
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
name: ruff check
description: This runs ruff check. If errors occur use ruff check --fix.
entry: ruff
args: [ check ]
language: python
types: [python]
- repo: local
hooks:
- id: mypy
name: mypy
description: This hook runs mypy type checking.
entry: bash -c 'python3 -m mypy "$@"' --
language: system
types: [python]
pass_filenames: true
always_run: false
- id: yamllint
name: yamllint
description: This hook runs yamllint.
entry: yamllint
language: python
types: [ file, yaml ]
- id: ci_tests
name: ci_tests
stages: [ pre-push ]
description: This hook runs before push
entry: tests/run-tests.sh ci
language: script
types_or: [ yaml, python ]