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

41 lines
1.0 KiB
YAML
Raw Normal View History

2024-12-28 14:02:22 +01:00
default_stages: [pre-commit]
2022-03-18 14:34:30 +01:00
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
2024-12-28 14:02:22 +01:00
rev: v5.0.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
2024-12-28 14:02:22 +01:00
rev: v19.1.5
2023-05-26 13:53:52 +02:00
hooks:
- id: clang-format
- 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]"]
# - id: cmake-lint
2022-05-12 13:58:16 +02:00
# additional_dependencies: ["cmakelang"]
# exclude: "cmake/.*"
- repo: https://github.com/psf/black
2024-12-28 14:02:22 +01:00
rev: 24.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
2024-12-28 14:02:22 +01:00
rev: 5.13.2
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
2024-12-28 14:02:22 +01:00
rev: 7.1.1
2022-05-12 14:07:09 +02:00
hooks:
- id: flake8
exclude: ^docs/javascripts/