From afdbacd83541de9d73fb4221342f6583ab473fbb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 24 May 2020 23:20:42 +0200 Subject: [PATCH] Add pre-commit and yamllint configuration --- .pre-commit-config.yaml | 10 ++++++++++ .yamllint | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 .yamllint diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000..da739ef2a4 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.17.0 + hooks: + - id: yamllint diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000000..b015c8445c --- /dev/null +++ b/.yamllint @@ -0,0 +1,5 @@ +--- +extends: default + +rules: + document-start: disable