We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to use watchfiles for Advent of Code.
When run with pytest, the Python runs unit tests on the short example. And when run with the Python interpreter, runs against the full input.
For example, I run:
pytest part1.py && python3 part1.py
I'd like to do something like:
watchfiles "pytest part1.py && python3 part1.py"
But it passes the whole thing to pytest which errors with "ERROR: file or directory not found: &&"
A workaround is to put pytest part1.py && python3 part1.py in a bash file and run:
watchfiles thing.sh
And I could create an alias, but would it be possible or sensible for watchfiles to handle it?
Operating System & Architecture:
macOS-14.7-arm64-arm-64bit-Mach-O Darwin Kernel Version 23.6.0: Wed Jul 31 20:48:52 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T6020
Python & Watchfiles Version:
python: 3.13.0 (v3.13.0:60403a5409f, Oct 7 2024, 00:37:40) [Clang 15.0.0 (clang-1500.3.9.4)], watchfiles: 1.0.0
The text was updated successfully, but these errors were encountered:
happy to accept a PR to support this, either special casing && or somehow running this with bash etc.
&&
Sorry, something went wrong.
No branches or pull requests
I'd like to use watchfiles for Advent of Code.
When run with pytest, the Python runs unit tests on the short example. And when run with the Python interpreter, runs against the full input.
For example, I run:
pytest part1.py && python3 part1.py
I'd like to do something like:
watchfiles "pytest part1.py && python3 part1.py"
But it passes the whole thing to pytest which errors with "ERROR: file or directory not found: &&"
A workaround is to put
pytest part1.py && python3 part1.py
in a bash file and run:And I could create an alias, but would it be possible or sensible for watchfiles to handle it?
Operating System & Architecture:
Python & Watchfiles Version:
The text was updated successfully, but these errors were encountered: