Skip to content

Commit

Permalink
Merge pull request #183 from flagarde/pre-commit_clang-format
Browse files Browse the repository at this point in the history
Use clang-format with pre-commit
  • Loading branch information
MCWertGaming authored Aug 23, 2022
2 parents 21760e6 + 50037b3 commit 57c8bf6
Show file tree
Hide file tree
Showing 4 changed files with 4,159 additions and 3,547 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/clang-format.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/pre-commit-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: pre-commit Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: pre-commit
# You may pin to the exact commit or the version.
# uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
uses: pre-commit/[email protected]
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
default_install_hook_types:
- pre-commit
- pre-merge-commit
- pre-push
- prepare-commit-msg
- commit-msg
- post-commit
- post-checkout
- post-merge
- post-rewrite

fail_fast: false

repos:

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
hooks:
- id: clang-format
Loading

0 comments on commit 57c8bf6

Please sign in to comment.