Skip to content

Commit d7985af

Browse files
SimplicityGuyclaude
andcommitted
fix: replace complex mdformat regex with simple exclude pattern
The complex negative lookahead regex was still causing issues in CI environments. Replaced it with the simpler and more reliable approach using separate 'files' and 'exclude' patterns. Changes: - files: '\.md$' (matches all markdown files) - exclude: '^(\.venv|venv|__pycache__|\.git|node_modules|\.egg-info|\.pytest_cache|\.mypy_cache|\.ruff_cache|dist|build)/' This approach is more readable, easier to maintain, and works consistently across different environments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent aad6aac commit d7985af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ repos:
3535
- mdformat-black==0.1.1
3636
- mdformat-gfm==0.4.1
3737
- mdformat-tables==1.0.0
38-
files: '^(?!.*(^|/)(\.venv|venv|__pycache__|\.git|node_modules|\.egg-info|\.pytest_cache|\.mypy_cache|\.ruff_cache|dist|build)/).*\.md$'
38+
files: '\.md$'
39+
exclude: '^(\.venv|venv|__pycache__|\.git|node_modules|\.egg-info|\.pytest_cache|\.mypy_cache|\.ruff_cache|dist|build)/'
3940

4041
- repo: https://github.com/astral-sh/ruff-pre-commit
4142
rev: db90487f48a9dd992d243ef63c156eaffddeaf28 # frozen: v0.12.11

0 commit comments

Comments
 (0)