You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just discovered this tool, looks very cool! Thanks for developing it!
I'm running ptw . and I want to ignore any changes in my virtualenv (installed at .venv/ in the project root).
I've tried
`ptw . --ignore_patterns ".venv/"
`ptw . --ignore_patterns ".venv/*"
`ptw . --ignore_patterns ".venv*"
but none of them work.
I think I have identified the issue. In watcher.py in _is_event_watched there is call to match_any_paths.
In match_any_paths, case_sensitive is an optional keyword, but it defaults to True. I'm on a Windows machine, so all my paths are being converted to a PurePosixPath.
The text was updated successfully, but these errors were encountered:
@KPLauritzen I am not sure case sensitivity is the root cause: If your venv dir is called .venv (lower case) then it should match on Windows if searched for .venv\* (lower case)
Have you tried prefixing your path with .\?
ptw reports changed paths and for me these do start with .\ on Windows (e,g,: .\.venv\.... Prefixing solved the problem in my case:
Just discovered this tool, looks very cool! Thanks for developing it!
I'm running
ptw .
and I want to ignore any changes in my virtualenv (installed at.venv/
in the project root).I've tried
but none of them work.
I think I have identified the issue. In
watcher.py
in_is_event_watched
there is call tomatch_any_paths
.In
match_any_paths
,case_sensitive
is an optional keyword, but it defaults to True. I'm on a Windows machine, so all my paths are being converted to aPurePosixPath
.The text was updated successfully, but these errors were encountered: