From f5d07ad1b39c6e017f61d7920d412d348ca1df45 Mon Sep 17 00:00:00 2001 From: Anas DORBANI <95044293+dorbanianas@users.noreply.github.com> Date: Fri, 29 Mar 2024 20:48:02 +0000 Subject: [PATCH] add more checks for the pre-commit config (#279) --- dev_config/python/.pre-commit-config.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dev_config/python/.pre-commit-config.yaml b/dev_config/python/.pre-commit-config.yaml index dda5fa8ab5..eccbe9a3ca 100644 --- a/dev_config/python/.pre-commit-config.yaml +++ b/dev_config/python/.pre-commit-config.yaml @@ -1,4 +1,26 @@ repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: debug-statements + - id: double-quote-string-fixer + - id: requirements-txt-fixer + + - repo: https://github.com/hhatto/autopep8 + rev: v2.1.0 + hooks: + - id: autopep8 + + - repo: https://github.com/asottile/setup-cfg-fmt + rev: v2.5.0 + hooks: + - id: setup-cfg-fmt + always_run: true + pass_filenames: false + - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.3 hooks: