From 42f31b8790153ca27a834c55d5942635a83fbbb0 Mon Sep 17 00:00:00 2001 From: mohit-tanwar-dev <2.75454979e+08+mohit-tanwar-dev@users.noreply.github.com> Date: Thu, 6 Aug 2026 06:10:40 +0000 Subject: [PATCH] chore: add pre-commit hooks and improve contributing guide --- .pre-commit-config.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 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..315cafd --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.2.1 + hooks: + - id: ruff + args: [--fix] + - id: ruff-format + + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.8.0 + hooks: + - id: mypy + additional_dependencies: [pydantic, fastapi]