From e63a7548696216739352a44bcdb11568db58c3e6 Mon Sep 17 00:00:00 2001 From: Roberto Rossini <71787608+robomics@users.noreply.github.com> Date: Sun, 4 Feb 2024 17:37:25 +0100 Subject: [PATCH] Add pre-commit config --- .pre-commit-config.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..2d40e85 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,18 @@ +# Copyright (C) 2023 Roberto Rossini +# +# SPDX-License-Identifier: MIT + +exclude: ^data +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-shebang-scripts-are-executable + - id: check-symlinks + - id: check-yaml + - id: end-of-file-fixer + - id: forbid-submodules + - id: mixed-line-ending + args: + - --fix=lf + - id: trailing-whitespace