From 0fbdfe1b830cd72c5781dd0ee8f1179dec4cae74 Mon Sep 17 00:00:00 2001 From: Savely Krendelhoff Date: Fri, 22 Aug 2025 17:14:54 +0700 Subject: [PATCH] Add pre-commit hook --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 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..9686e2b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: trailing-whitespace + args: [--markdown-linebreak-ext=md] # сохранить двойной пробел в markdown как перенос + - id: end-of-file-fixer + - id: mixed-line-ending + args: [--fix=lf]