From d67a0fb5591f420ab8caeeab1b05377c4145841c Mon Sep 17 00:00:00 2001 From: Anton M Date: Tue, 26 Mar 2024 03:03:48 +0500 Subject: [PATCH] config --- .pre-commit-config.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..8ec8e48 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,33 @@ +default_stages: [pre-push] +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-toml + - id: check-yaml + - id: end-of-file-fixer + - id: requirements-txt-fixer + - id: trailing-whitespace + +- repo: local + hooks: + - id: black + name: black + entry: black + language: system + types: [python] + args: [validity] + + - id: isort + name: isort + entry: isort + language: system + types: [python] + args: [validity] + + - id: flake8 + name: flake8 + entry: flake8 + language: system + types: [python] + args: [validity]