Skip to content

Commit

Permalink
pre-commit: faster/auto-fixing clang-format hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Feb 18, 2022
1 parent 6bbac7d commit 1847002
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,12 @@ repos:
# files: (\.cmake|CMakeLists.txt)(.in)?$

# C++ formatting
# clang-format
- repo: local
# clang-format v12
# to run manually, use .github/workflows/clang-format/clang-format.sh
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v12.0.1
hooks:
- id: clang-format
name: clang-format
description: Clang-format our code base
files: '^(include|src|test|examples)/.*\.(hpp|cpp|hpp\.in)$'
language: conda
entry: bash .github/workflows/clang-format/clang-format.sh
additional_dependencies: [-c, conda-forge, clang-format-12]

# Autoremoves unused Python imports
- repo: https://github.com/hadialqattan/pycln
Expand Down

0 comments on commit 1847002

Please sign in to comment.