forked from NVIDIA/cuda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (36 loc) · 1.12 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (36 loc) · 1.12 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
# Copyright (c) 2024-2025, NVIDIA CORPORATION.
#
# SPDX-License-Identifier: Apache-2.0
ci:
autofix_commit_msg: |
[pre-commit.ci] auto code formatting
autofix_prs: false
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: quarterly
skip: [bandit]
submodules: false
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 971923581912ef60a6b70dbf0c3e9a39563c9d47 #v0.11.4
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format
- repo: local
hooks:
- id: check-spdx
name: Check SPDX-License-Identifier
entry: python ./toolshed/check_spdx.py
language: python
additional_dependencies:
- https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl
- repo: https://github.com/PyCQA/bandit
rev: 8ff25e07e487f143571cc305e56dd0253c60bc7b #v1.8.3
hooks:
- id: bandit
args:
- --ini
- .bandit
default_language_version:
python: python3