mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-20 03:47:20 -04:00
Add basic pre-commit configuration
This commit is contained in:
parent
201e6f41c8
commit
f9c196503b
1 changed files with 31 additions and 0 deletions
31
.pre-commit-config.yaml
Normal file
31
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
# .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
|
||||
minimum_pre_commit_version: "4.0.0"
|
||||
repos:
|
||||
- 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
|
Loading…
Add table
Add a link
Reference in a new issue