Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we watch only certain filetypes? #90

Open
cgebbe opened this issue Apr 19, 2022 · 0 comments
Open

Can we watch only certain filetypes? #90

cgebbe opened this issue Apr 19, 2022 · 0 comments

Comments

@cgebbe
Copy link

cgebbe commented Apr 19, 2022

I try to use this as a replacement for pytest-watch, which is not maintained anymore.

This works beautifully:
when-changed -s -r tests/ -c echo "hello"

However, I would like to watch only files with the PY extension like such:
when-changed -s 'tests/**/*.py' -c echo "hello"
which results in the following error using git bash on windows

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect.

Also, I tried to use
find tests/ -name '*.py' | xargs -I{} when-changed {} -c echo "hello"
, but this doesn't work and I can't even exit from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants