-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (64 loc) · 2.19 KB
/
.pre-commit-config.yaml
File metadata and controls
73 lines (64 loc) · 2.19 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
65
66
67
68
69
70
71
72
73
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.16.0
hooks:
- id: markdownlint-cli2
args: ["--fix"]
- repo: local
hooks:
- id: pytest-collector-watcher
name: pytest (collector-watcher)
entry: bash -c 'cd ecosystem-automation/collector-watcher && uv run pytest tests/ -v'
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: prettier-ecosystem-explorer
name: prettier (ecosystem-explorer)
entry: bash -c 'cd ecosystem-explorer && npm run format'
language: system
pass_filenames: false
files: ^ecosystem-explorer/src/.*\.(ts|tsx|css|json)$
stages: [pre-commit]
- id: eslint-ecosystem-explorer
name: eslint (ecosystem-explorer)
entry: bash -c 'cd ecosystem-explorer && npm run lint'
language: system
pass_filenames: false
files: ^ecosystem-explorer/
stages: [pre-commit]
- id: test-ecosystem-explorer
name: test (ecosystem-explorer)
entry: bash -c 'cd ecosystem-explorer && npm test'
language: system
pass_filenames: false
files: ^ecosystem-explorer/
stages: [pre-commit]
- id: typecheck-ecosystem-explorer
name: typecheck (ecosystem-explorer)
entry: bash -c 'cd ecosystem-explorer && npm run typecheck'
language: system
pass_filenames: false
files: ^ecosystem-explorer/.*\.(ts|tsx)$
stages: [pre-commit]
- id: add-copyright-headers
name: add copyright headers
entry: uv run python scripts/add_copyright.py
language: system
pass_filenames: false
files: \.(py|js|ts|tsx)$
stages: [pre-commit]
- id: check-copyright-headers
name: check copyright headers
entry: uv run python scripts/check_copyright.py
language: system
pass_filenames: false
files: \.(py|js|ts|tsx)$
stages: [pre-commit]