From d7f0b3e7f8938114a7b0c73af013b441f3282461 Mon Sep 17 00:00:00 2001 From: Luchesar ILIEV Date: Tue, 4 Jun 2024 17:55:20 +0300 Subject: [PATCH] ops: add more pre-commit hooks --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b20d38e..719f7bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,19 @@ --- repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: check-docstring-first + - id: check-json + - id: check-merge-conflict + - id: debug-statements + - id: detect-private-key + - id: end-of-file-fixer + - id: name-tests-test + - id: no-commit-to-branch + - id: pretty-format-json + args: [--autofix, --no-ensure-ascii] + - id: trailing-whitespace - repo: https://github.com/python-poetry/poetry rev: 1.8.3 hooks: @@ -9,6 +23,7 @@ repos: rev: 24.4.2 hooks: - id: black + args: [--preview] - repo: https://github.com/pycqa/flake8 rev: 7.0.0 hooks: