watchfiles icon indicating copy to clipboard operation
watchfiles copied to clipboard

Simple, modern and fast file watching and code reload in python.

Results 36 watchfiles issues
Sort by recently updated
recently updated
newest added

Currently, all folders are recursively watched, with the only option to exclude folders via options with filters. https://github.com/samuelcolvin/watchfiles/blob/937d00fe5ba9c1c8f6360823078a9b6387c9e07c/src/lib.rs#L50 I would propose to include a boolean flag `recursive=False` that would disable...

### Description When exiting my application I'm getting `RuntimeError: Already borrowed` error ### Example Code _No response_ ### Watchfiles Output ```Text future: Traceback (most recent call last): File "/home/bellini/dev/2u/nomad/nomad/agents/base.py", line...

bug

I agree with @graingert in #164 that we should raise a resource warning just to be safe if `RustNotify` isn't explicitly "closed" even though it mostly wouldn't actually be necessary...

See [here](https://github.com/notify-rs/notify/blob/480de9dc8f227fc9c7d6561837ad38583efe09d3/src/poll.rs#L56-L62), might be good to give this option in a future release, I'm sure someone will want it. ```rs /// Optional feature that will evaluate the contents of changed...

enhancement

### Description I'm trying to monitor file creations and deletions using `awatch`. I'm expecting that if files are rapidly created and then deleted, `watchfiles` would either: * report them, in...

bug

### Description I have a subdirectory that results in a permission denied error: ``` Traceback (most recent call last): File "/home/jeppe/Code/jeppe.science/.venv/bin/watchfiles", line 8, in sys.exit(cli()) File "/home/jeppe/Code/jeppe.science/.venv/lib/python3.10/site-packages/watchfiles/cli.py", line 136, in...

bug

I'm wanting to watch a single txt file for modifications, but when using the default example: ``` python import asyncio from watchfiles import awatch async def main(): async for changes...

bug

Hi. I'm curious if anyone else would find it desirable or feasible to be able to update the list of paths watched *during* iteration. For example, I'm writing a build...

Update: docker check is not required, see discussion below and default to polling automatically. See: * #134 * #169 * https://github.com/encode/uvicorn/pull/1647 [Looks like](https://www.scivision.dev/python-detect-wsl/) it shouldn't be too hard to detect...

I think watchfiles is pretty stable and we should release version 1. Unless anyone has any problems with that, or urgent bugs to fix/features to add; I'll release v1.0.0b1 in...