-
Notifications
You must be signed in to change notification settings - Fork 391
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
Exclude file for wild card star sync #986
Comments
Hello @yasirroni , thanks for reaching out. I have a few comments/questions on the above
|
|
Thank you @yasirroni for your prompt reply. For 2, does the --quiet option remove the warning? If not, would you like to use --quiet or would you prefer another option like --ignore-unpaired-files? Re 3 yes the value in the confit file override "formats" for notebooks that don't have a value, so you won't need the --set-formats command any more |
For me, --ignore or --except following with list of file is preferred to abstract wildcard (since Jupytext support wildcard). An ignore parameters will also help config file, for example someone what to pair all .py files except init.py
|
Hi @yasirroni , I tried to implement a new |
I'm using this commands for my workflow:
It works well. Sadly, there is another file in
notebooks/
that is not .ipynb and .py, like folders or whatever extensions.The
jupytext --set-formats ipynb,py:percent notebooks/*.ipynb
is great for initiate the sync, whilejupytext --sync notebooks/*
is great for syncing.Changing the
jupytext --sync notebooks/*
tojupytext --sync notebooks/*.ipynb
make the sync only work one way (if the.py
files updated, jupytext revert the update).A solution is to support exclude list:
The text was updated successfully, but these errors were encountered: