Ignore Patterns¶
Configure which files and directories Pyreload should ignore when watching for changes.
Default Ignored Paths¶
Pyreload automatically ignores common paths:
- .git/
- __pycache__/
- *.pyc
- .venv/, venv/
- node_modules/
- .tox/
- *.egg-info/
Custom Ignore Patterns¶
Command Line¶
Config File¶
Pattern Syntax¶
Pyreload uses glob pattern matching:
*- Matches any characters except/**- Matches any characters including/?- Matches a single character[abc]- Matches any character in brackets
Examples¶
Ignore Test Files¶
Ignore Build Artifacts¶
Ignore Logs and Temp Files¶
Ignore Documentation¶
Precedence Rules¶
- Default ignore patterns are always applied
- Custom ignore patterns are added to defaults
- More specific patterns override general ones
Debugging Ignore Patterns¶
Use verbose mode to see what's being watched:
This shows: - Which files are being watched - Which files are being ignored - Why files are ignored
Common Use Cases¶
Python Package¶
ignore:
- "tests/**"
- "**/__pycache__/**"
- "**/*.pyc"
- ".pytest_cache/**"
- "htmlcov/**"
- ".coverage"
Django Project¶
Flask Application¶
Performance Tips¶
- Ignore large directories: Exclude
node_modules,.venv, etc. - Be specific: Use precise patterns to avoid unnecessary scanning
- Test patterns: Verify ignored files with verbose mode