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
This commit is contained in:
Sven Lito
2025-08-08 17:39:25 +07:00
parent af3a81543c
commit fcaf0d6917

View File

@@ -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/
)$
)