Home

Awesome

<p align="center"> A template for creating the <a href="https://github.com/xonsh/xonsh">xonsh</a> contributions called <a href="https://xon.sh/tutorial_xontrib.html">xontribs</a>. </p> <p align="center"> If you like the template click ⭐ on the repo. </p>

asciicast

Why use this template?

This template includes good pack of prebuilt files:

Create new xontrib

Install copier:

xpip install copier jinja2-time cookiecutter

# OR using pipx (https://pypa.github.io/pipx/):
pipx install copier>=9
pipx inject copier copier-templates-extensions

Create your new xontrib:

copier copy --trust gh:xonsh/xontrib-template .

Advent of PEP-621

Older projects can use the following tools to upgrade their setup to use pyproject.toml

If you have an idea for xontrib but have no time to implement

Development

How to fix pre-commit-hooks

If you're using .pre-commit-config.yaml and have an error during testing you need fix the code i.e.:

xpip install pre-commit-hooks
pre-commit run --all-files black  # or isort, etc

Links