From 1a2e8ff659082f5cb37331b6766159ec8575d62b Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 1 Sep 2023 16:08:37 +0300 Subject: [PATCH] add .editorconfig & .pre-commit-config.yaml --- .editorconfig | 11 +++++++++++ .pre-commit-config.yaml | 22 ++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .editorconfig create mode 100644 .pre-commit-config.yaml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..544472e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +# See https://editorconfig.org for more information +root = true + +[*] +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 + +[*.{markdown,md}] +trim_trailing_whitespace = false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..7e6e0e6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +# See https://pre-commit.com for more information +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-yaml + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable + - id: destroyed-symlinks + - id: detect-private-key + - id: end-of-file-fixer + - id: fix-byte-order-marker + - id: trailing-whitespace + exclude_types: [markdown] + + - repo: https://github.com/editorconfig-checker/editorconfig-checker.python + rev: "2.7.2" + hooks: + - id: editorconfig-checker + alias: ec