our_knp/examples/tools/hooks/.pre-commit-hooks.yaml
int 8f43927575 Initial import: KNP experiments (examples, viz, cats-dogs, reports)
examples/ is based on KasperskyLab/knp at 55470ed6 with local changes
to the mnist-learn altai/blifat models, cuda-backend CMake and model_loader.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 18:17:15 +03:00

47 lines
1.5 KiB
YAML

# This file tells https://pre-commit.com/
# which hooks are provided by this repo
# for use by other git repos.
- id: clang-format
name: clang-format
entry: clang-format-hook
description: Formats C, C++, Objective-C, and Java code
types_or: [c, c++, c#, objective-c, java]
language: python
- id: clang-tidy
name: clang-tidy
entry: clang-tidy-hook
description: Find warnings/errors in C, C++, and Objective-C code
types_or: [c, c++, c#, objective-c]
language: python
- id: oclint
name: oclint
entry: oclint-hook
description: Find warnings/errors in C, C++, and Objective-C code
types_or: [c, c++, c#, objective-c]
language: python
- id: uncrustify
name: uncrustify
entry: uncrustify-hook
description: Formats C, C++, Objective-C, Java, D, and Vala code
# D, vala currently aren't valid file types. See https://github.com/pre-commit/identify/issues/258.
types_or: [c, c++, c#, objective-c, java]
language: python
- id: cppcheck
name: cppcheck
entry: cppcheck-hook
description: Find warnings/errors in C, C++, and Objective-C code
types_or: [c, c++, c#, objective-c]
language: python
- id: cpplint
name: cpplint
entry: cpplint-hook
description: Find warnings/errors in C/CPP code
types_or: [c, c++, c#, objective-c, cuda]
language: python
- id: include-what-you-use
name: include-what-you-use
entry: include-what-you-use-hook
description: Runs Include-What-You-Use (iwyu) in C/CPP code
types_or: [c, c++, c#, objective-c, cuda]
language: python