Watch Patterns¶
Configure which files and directories Pyreload should monitor for changes.
Default Behavior¶
By default, Pyreload watches:
- The current directory (recursively)
- Only
.pyfiles
Specifying Watch Paths¶
Command Line¶
Config File¶
File Extensions¶
Watch Multiple Extensions¶
Config File¶
Pattern Matching¶
Pyreload supports glob patterns:
Watch All Files¶
To watch all files regardless of extension:
Combining with Ignore Patterns¶
Watch everything but exclude specific paths:
Best Practices¶
- Be specific: Watch only the directories you need
- Use ignore patterns: Exclude build artifacts and caches
- Consider performance: Watching too many files can slow down detection
- Test patterns: Use
-vfor verbose output to see what's being watched