Skip to content

JanJaguschQC/pre-commit-mirrors-jupytext

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jupytext pre-commit hook

Hook for Jupytext with conda as a language. Currently the main Jupytext-repo doesn't have pre-commit hooks defined, so this repo is called mirror only for consistency.

Using Jupytext with pre-commit and conda:

Add this to your .pre-commit-config.yaml:

- repo: https://github.com/Quantco/pre-commit-mirrors-jupytext
  rev: ''  # The git sha / tag you want to point to
  hooks:
    - id: jupytext-conda
    - args:
      - --to=py:percent

args is optional and allows passing further parameters to jupytext. By default only --to=py:percent is passed which converts all Jupyter notebooks to Python scripts using the percent formatting.

About

pre-commit hook for jupytext

Resources

License

Stars

Watchers

Forks

Packages

No packages published