forked from iree-org/wave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (38 loc) · 1.24 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (38 loc) · 1.24 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# Fix trivial whitespace, line endings, YAML, large files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# Format code with Black
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
# Fix unused imports
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.3
hooks:
- id: ruff
args: [--select=F401,I001, --fix]
name: ruff-unused-imports-and-sorting
- repo: https://github.com/pre-commit/mirrors-clang-format
# Loosely track the most recent versions in
# * Runner images: https://github.com/actions/runner-images/
# * Editor extensions: https://github.com/microsoft/vscode-cpptools
rev: v18.1.3
hooks:
- id: clang-format
name: Run clang-format on C/C++/etc. files
exclude_types: ["jupyter", "json"]
# Sort file and library lists in CMake files.
- repo: https://github.com/Hardcode84/3
rev: v0.3.0
hooks:
- id: sort-cmake-lists
exclude: llvm-project/