forked from chamilad/process-metrics-collector
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
65 lines (63 loc) · 1.95 KB
/
.pre-commit-config.yaml
File metadata and controls
65 lines (63 loc) · 1.95 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# This one has been added to fail fast on syntax errors
# before running expensive pylint
- id: check-ast
types_or:
- python
- pyi
exclude: "/(site-packages|development-[^/]*|docs|node_modules|__pycache__|\\..*)/$"
- id: check-json
- id: check-yaml
types: [file]
files: \.(yaml|yml)$
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.10
hooks:
# Run the linter.
- id: ruff-check
# Main problem: python executable path, used to find the environment, is hardcoded
# - repo: https://github.com/pre-commit/mirrors-mypy.git
# rev: v1.15.0
# hooks:
# - id: mypy
# alias: mirrormypy
# exclude: "/(site-packages|development-[^/]*|docs|node_modules|__pycache__|\\..*)/$"
# require_serial: true
# entry: env PYTHONPATH=. mypy
# args: [--strict, --show-error-codes, --no-warn-unused-ignores, --python-executable, .full13/bin/python]
- repo: local
hooks:
- id: mypy
name: Local MyPy
language: system
types_or:
- python
- pyi
exclude: "/(site-packages|development-[^/]*|docs|node_modules|__pycache__|\\..*)/$"
require_serial: true
entry: mypy
args: [--strict, --show-error-codes, --no-warn-unused-ignores]
- repo: https://github.com/koalaman/shellcheck-precommit.git
rev: v0.10.0
hooks:
- id: shellcheck
#args: [--format,json]
stages: [manual]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.10
hooks:
# Run the formatter.
- id: ruff-format
args: [--diff]
- id: ruff-format
stages: [manual]
- repo: https://github.com/jmfernandez/pre-commit_mirrors-actionlint.git
rev: v1.7.1
hooks:
- id: actionlint