Skip to content

Commit 7068244

Browse files
committed
feat: add pre-commit
1 parent f961a58 commit 7068244

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.github/workflows/clang-tools-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build clang-tools wheels
22

33
on:
4+
45
workflow_dispatch:
56
inputs:
67
llvm_version:

.github/workflows/pre-commit.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Run pre-commit
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: opened
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
pre-commit:
13+
uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: check-yaml
7+
- id: end-of-file-fixer
8+
- id: check-added-large-files
9+
- id: check-merge-conflict

0 commit comments

Comments
 (0)