-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
96 lines (87 loc) · 2.5 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
exclude: tsconfig.json
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
args: [-x]
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint-docker
- repo: local
hooks:
- id: prettier
name: prettier
description: ''
entry: prettier --write --ignore-unknown
language: node
types: [text]
args: []
require_serial: false
additional_dependencies:
# renovate: datasource=npm
# renovate: datasource=npm
- '@trivago/[email protected]'
# renovate: datasource=npm
- id: ruff-lint
name: ruff-lint
entry:
bash -c 'cd gitlab && uv run ruff check --fix --exit-non-zero-on-fix
--force-exclude'
language: python
require_serial: true
args: []
types_or: [python, pyi]
additional_dependencies: []
files: ^gitlab/
- id: ruff-format
name: ruff-format
entry: bash -c 'cd gitlab && uv run ruff format --force-exclude'
language: python
require_serial: true
args: []
types_or: [python, pyi]
additional_dependencies: []
files: ^gitlab/
- id: pyright
name: pyright
entry: bash -c 'cd gitlab && uv run pyright'
language: python
require_serial: true
types_or: [python, pyi]
additional_dependencies: []
files: ^gitlab/
# - id: e2e-tests-eslint
# name: eslint
# entry: e2e-tests/eslint-pre-commit.sh
# language: system
# args: []
# require_serial: false
# types: [file]
# files: ^e2e-tests/.*/.*\.[jt]sx?$
- id: e2e-tests-eslint
name: eslint
entry: bash -c 'cd e2e-tests && npm run lint-fix'
language: system
pass_filenames: false
require_serial: false
types: [file]
files: ^e2e-tests/