Files
mp-units/.pre-commit-config.yaml
T

38 lines
1002 B
YAML
Raw Normal View History

2022-03-18 14:34:30 +01:00
default_stages: [commit]
repos:
2023-05-26 13:53:52 +02:00
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
2022-03-18 14:34:30 +01:00
- repo: https://github.com/pre-commit/pre-commit-hooks
2023-05-26 13:53:52 +02:00
rev: v4.3.0
2022-03-18 14:34:30 +01:00
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
2023-05-26 13:53:52 +02:00
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
2023-05-26 13:53:52 +02:00
hooks:
- id: clang-format
2022-03-22 18:34:05 +01:00
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
2022-03-27 16:06:18 +02:00
additional_dependencies: ["cmakelang[YAML]"]
2022-03-22 18:34:05 +01:00
# - id: cmake-lint
2022-05-12 13:58:16 +02:00
# additional_dependencies: ["cmakelang"]
# exclude: "cmake/.*"
- repo: https://github.com/psf/black
2023-05-26 13:53:52 +02:00
rev: 22.10.0
2022-05-12 13:58:16 +02:00
hooks:
- id: black
language_version: python3
2022-05-12 14:00:10 +02:00
- repo: https://github.com/PyCQA/isort
2023-05-26 13:53:52 +02:00
rev: 5.12.0
2022-05-12 14:00:10 +02:00
hooks:
- id: isort
args: [--profile, black, --multi-line, "3"]
2022-05-12 14:07:09 +02:00
- repo: https://github.com/PyCQA/flake8
2023-05-26 13:53:52 +02:00
rev: 5.0.4
2022-05-12 14:07:09 +02:00
hooks:
- id: flake8