From fcaf0d691755a973ca08c676fcf7fdd221d5a800 Mon Sep 17 00:00:00 2001 From: Sven Lito Date: Fri, 8 Aug 2025 17:39:25 +0700 Subject: [PATCH] fix: correct pre-commit global exclude pattern and remove redundant excludes - Remove $ anchor from global exclude pattern to properly exclude files within directories - Remove redundant exclude properties from black and ruff hooks since global exclude now handles it - Ensures isort hook also excludes test_simulation_files/ consistently Addresses reviewer feedback on PR #217 --- .pre-commit-config.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ead23ff..d17cf3c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,6 @@ repos: rev: 25.1.0 hooks: - id: black - exclude: ^test_simulation_files/ - repo: https://github.com/pycqa/isort rev: 6.0.1 @@ -18,7 +17,6 @@ repos: hooks: - id: ruff args: [--fix] - exclude: ^test_simulation_files/ # Configuration for specific tools default_language_version: @@ -37,4 +35,4 @@ exclude: | dist/| build/| test_simulation_files/ - )$ + )