From 707a1b5a756d106be1fdc229878aee9972223458 Mon Sep 17 00:00:00 2001 From: liberty-rising Date: Wed, 3 Jan 2024 18:09:41 +0100 Subject: [PATCH] add new pre-commit config --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e28c0ea..6beca13 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,15 +5,18 @@ repos: - id: black language_version: python3 # Ensure black uses the correct version of Python files: ^backend/ # Run black only on files in the backend/ directory + exclude: ^backend/alembic/versions/ # Exclude alembic migration files - repo: https://github.com/PyCQA/flake8 rev: 6.1.0 hooks: - id: flake8 files: ^backend/ # Run flake8 only on files in the backend/ directory + exclude: ^backend/alembic/versions/ # Exclude alembic migration files - repo: https://github.com/pre-commit/mirrors-mypy rev: 'v1.7.1' # Use the latest version hooks: - id: mypy files: ^backend/ + exclude: ^backend/alembic/versions/ # Exclude alembic migration files