From 992197649c2195cc8aff506a179608b5cd8a49f6 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 21 Feb 2024 11:07:23 +0300 Subject: [PATCH] add pre-commit --- .pre-commit-config.yaml | 13 +++++++++++++ requirements.dev.txt | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 requirements.dev.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..80b4f42 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace +- repo: https://github.com/psf/black + rev: 24.2.0 + hooks: + - id: black diff --git a/requirements.dev.txt b/requirements.dev.txt new file mode 100644 index 0000000..ac899fb --- /dev/null +++ b/requirements.dev.txt @@ -0,0 +1,2 @@ +black>=24,<25 +pre-commit>=3.6.2,<4