forked from openhwgroup/cvw
-
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 (38 loc) · 1.27 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (38 loc) · 1.27 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
# .pre-commit-config.yaml
# jcarlin@hmc.edu 8 April 2025
# Pre-commit hook configuration file for CVW
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: addins/
minimum_pre_commit_version: "4.0.0"
repos:
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
# - id: check-executables-have-shebangs
# - id: check-shebang-scripts-are-executable
- id: check-symlinks
exclude: bin/sim_bp # symlink to compiled executable
- id: requirements-txt-fixer
files: requirements.txt
# - id: end-of-file-fixer
# - id: trailing-whitespace
# args: [--markdown-linebreak-ext=md]
- id: check-merge-conflict
args: ["--assume-in-merge"]
exclude: \.adoc$ # sections titles Level 6 "=======" get flagged otherwise
- id: check-json
- id: check-toml
- id: check-yaml
# Ruff python linter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.4
hooks:
# Run the linter.
- id: ruff-check
args: [ --fix ]