From 0bff558762e973de5eee9df1a5db53ee3260122f Mon Sep 17 00:00:00 2001 From: CodeWriter21 Date: Thu, 28 Mar 2024 01:18:57 +0330 Subject: [PATCH] Added pre-commit --- .pre-commit-config.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..dc3537c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,23 @@ +default_language_version: + python: python3.11 +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: check-yaml + - id: check-added-large-files + - id: double-quote-string-fixer + + - repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort + name: isort + + - repo: https://github.com/PyCQA/docformatter + rev: v1.7.5 + hooks: + - id: docformatter + additional_dependencies: [tomli] + args: [./pyproject.toml]