Skip to content

Commit 732b1f6

Browse files
SimplicityGuyclaude
andcommitted
fix: exclude virtual environment directories from mdformat hook
- Add exclude pattern to mdformat hook to skip .venv/, venv/, and *.egg-info/ directories - Prevents mdformat from processing third-party package documentation - Resolves CI/CD pre-commit hook failures caused by formatting inconsistencies - Ensures consistent behavior between local development and CI environments This fixes the "files were modified by this hook" error that was occurring when mdformat tried to format markdown files in dependency packages. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ebc94f8 commit 732b1f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ repos:
3535
- mdformat-black==0.1.1
3636
- mdformat-gfm==0.4.1
3737
- mdformat-tables==1.0.0
38+
exclude: ^(.venv/|venv/|.*\.egg-info/)
3839

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

0 commit comments

Comments
 (0)