Welcome! As a Jupyter project, you can follow the Jupyter contributor guide.
Make sure to also follow Project Jupyter's Code of Conduct for a friendly and welcoming collaborative environment.
pip install -e ".[test]"
pre-commit
is a tool we use to validate code and
autoformat it. The kind of validation and auto formatting can be inspected via
the .pre-commit-config.yaml
file.
As the name implies, pre-commit
can be configured to run its validation and
auto formatting just before you make a commit. By configuring it to do so, you
can avoid having to have a separate commit later that applies auto formatting.
To configure pre-commit
to run act before you commit, you can run the
following command from the root of this repository next to the
.pre-commit-config.yaml
file.
pip install pre-commit
pre-commit install --install-hooks
For developing the Native Authenticator, you can start a JupyterHub server using dev-jupyterhub_config.py
.
jupyterhub -f dev-jupyterhub_config.py
On the project folder you can run tests by using pytest
pytest