From b47f597904ffea03d92bae31effac023577c2baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirko=20M=C3=A4licke?= Date: Fri, 13 Oct 2023 06:01:02 +0200 Subject: [PATCH] add basic pre-commit-hooks --- .pre-commit-config.yaml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24406c0..e7a06fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,23 @@ repos: - # Fix common spelling mistakes - - repo: https://github.com/codespell-project/codespell - rev: v2.2.1 - hooks: - - id: codespell - args: [ - # Verly is a Name, coo references the SciPy coo sparse matrix - '--ignore-words-list', 'verly,coo', - '--write-changes', -# 'nd,alos,inout', -# '--ignore-regex', '\bhist\b', - '--' - ] - types_or: [python, rst, markdown] - files: ^(skgstat|docs|tutorials)/ + # Fix common spelling mistakes + - repo: https://github.com/codespell-project/codespell + rev: v2.2.1 + hooks: + - id: codespell + args: [ + # Verly is a Name, coo references the SciPy coo sparse matrix + '--ignore-words-list', 'verly,coo', + '--write-changes', + # 'nd,alos,inout', + # '--ignore-regex', '\bhist\b', + '--' + ] + types_or: [python, rst, markdown] + files: ^(skgstat|docs|tutorials)/ + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace