-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
31 lines (29 loc) · 1.07 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
31 lines (29 loc) · 1.07 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
# SPDX-FileCopyrightText: (C) 2025 Tenstorrent AI ULC
# SPDX-License-Identifier: Apache-2.0
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: true
repos:
- repo: local
hooks:
- id: spdx-checker
name: Check SPDX License and Copyright
description: Check SPDX License and Copyright
language: system
entry: python tools/spdxchecker.py
args: [--config, .github/spdxchecker-config.yml, --loglevel, error]
pass_filenames: false
- id: static checker
name: Run static checks on the repository
description: Check static checks
language: system
entry: python ./checkin_tests.py
args: [static]
pass_filenames: false
- id: unit tests
name: Run unit tests
description: Run unit tests
language: system
entry: pytest
args: [-m, 'unit and not slow and not tools_secondary']
pass_filenames: false