Files
create/.pre-commit-config.yaml
2023-09-04 07:22:09 -05:00

44 lines
1.0 KiB
YAML

# SPDX-License-Identifier: LGPL-2.1-or-later
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
files: |
(?x)^(
src/Mod/AddonManager|
src/Tools|
tests/src|
src/Mod/Assembly|
src/Mod/Inspection|
src/Mod/MeshPart|
src/Mod/Points|
src/Mod/ReverseEngineering|
src/Mod/Sketcher|
src/Mod/Surface|
src/Mod/Start|
src/Mod/Test|
src/Mod/Web
)
exclude: |
(?x)^(
.*vcproj.*|
.*vcxproj.*
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
args: ['--line-length', '100']
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v15.0.7
hooks:
- id: clang-format