Convert double quotes ("") to single quotes ('') in Jupyter notebook code cells
pip install jupyter-nb-double-quote-to-single-quote
jupyter-nb-double-quote-to-single-quote my_notebook.ipynb
Use --help
to see documentations of command line arguments.
Put the following into your .pre-commit-config.yaml
file. Remember to replace <VERSION>
with your version of this tool (such as v0.1.0
):
- repo: https://github.com/cyyc1/jupyter-nb-double-quote-to-single-quote
rev: <VERSION>
hooks:
- id: jupyter-nb-double-quote-to-single-quote
See pre-commit for more instructions.
The license of this tool is MIT License. See the file LICENSE
A significant portion of the code used in this tool comes from https://github.com/pre-commit/pre-commit-hooks, in particular, the file string_fixer.py
. As such, we added pre-commit-hooks' license as the original license (see the file ORIGINAL_LICENSE
).