mwouts / jupytext

Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
https://jupytext.readthedocs.io
MIT License
6.65k stars 386 forks source link

Update the pre-commit hooks #1246

Closed mwouts closed 4 months ago

mwouts commented 4 months ago

Hopefully this will fix the error seen on the CI at https://github.com/mwouts/jupytext/actions/runs/9614533554/job/26519542096?pr=1245

pyupgrade................................................................Failed
- hook id: pyupgrade
- exit code: 1
- files were modified by this hook

Rewriting tests/external/simple_external_notebooks/test_read_simple_pandoc.py

isort....................................................................Passed
black....................................................................Failed
- hook id: black
- files were modified by this hook

reformatted tests/external/simple_external_notebooks/test_read_simple_pandoc.py
github-actions[bot] commented 4 months ago

Thank you for making this pull request.

Did you know? You can try it on Binder: Binder:lab or Binder:notebook.

Also, the version of Jupytext developed in this PR can be installed with pip:

HATCH_BUILD_HOOKS_ENABLE=true pip install git+https://github.com/mwouts/jupytext.git@pre_commit_update

(this requires nodejs, see more at Developing Jupytext)