-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
92 lines (90 loc) · 2.85 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
92 lines (90 loc) · 2.85 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.19
hooks:
- id: ruff-check
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/rapidsai/pre-commit-hooks
rev: v1.5.1
hooks:
- id: verify-copyright
name: verify-copyright
args: [--fix, --spdx, "--spdx-license-identifier=BSD-3-Clause"]
files: |
(?x)
[.](css|js|py|sh|toml|ts|tsx|yaml|yml)$
exclude: |
(?x)^(
^conda/environments/
)
- repo: https://github.com/rapidsai/dependency-file-generator
rev: v1.21.0
hooks:
- id: rapids-dependency-file-generator
args: ['--clean']
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.26.1
hooks:
- id: zizmor
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [javascript, jsx, ts, tsx, json, css]
files: ^(src|style)/.*$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v10.5.0
hooks:
- id: eslint
files: ^src/.*\.(ts|tsx)$
types: [file]
additional_dependencies:
- eslint@8.36.0
- eslint-config-prettier@8.8.0
- eslint-plugin-prettier@5.0.0
- prettier@3.0.0
- '@typescript-eslint/eslint-plugin@6.1.0'
- '@typescript-eslint/parser@6.1.0'
- typescript@5.0.2
# NOTE: As long as these hooks all use the same 'additional_dependencies' and 'language'
# they'll be able to share the same conda environment. Keep them in sync.
- repo: local
hooks:
- id: check-yarn-version
name: check-yarn-version
language: conda
entry: ./ci/check-yarn-version.sh
pass_filenames: false
additional_dependencies:
- jupyterlab>=4.0.0
- nodejs=22
- id: yarn-lockfile-dedupe
name: yarn-lockfile-dedupe
language: conda
entry: bash -c 'jlpm install && jlpm run "dedupe:check" || { jlpm run dedupe && exit 1; }'
pass_filenames: false
additional_dependencies:
- jupyterlab>=4.0.0
- nodejs=22
- id: check-frontend
name: check-frontend
language: conda
entry: bash -c 'jlpm install && jlpm run eslint:check'
pass_filenames: false
additional_dependencies:
- jupyterlab>=4.0.0
- nodejs=22
default_language_version:
python: python3