Commit aad6aac
fix: correct mdformat regex to properly exclude virtual environments
The previous regex pattern was not correctly excluding files at the root level
of excluded directories like .venv/. The negative lookahead required the pattern
to match after a slash, but root-level directories don't have a preceding slash.
Changed from:
(?!.*/(\.venv|...))
To:
(?!.*(^|/)(\.venv|...))
This ensures that files like .venv/lib/python3.13/site-packages/test.md are
properly excluded, preventing CI failures when mdformat tries to process
third-party library files that don't conform to our formatting standards.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 3392845 commit aad6aac
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments