Contributing to mock-response-delay¶
Contributions to this repository must pass tests and linting.
CI is the canonical source of truth.
Install contribution dependencies¶
Install Python dependencies in a virtual environment.
$ pip install --editable . --group dev
Spell checking requires enchant.
This can be installed on macOS, for example, with Homebrew:
$ brew install enchant
and on Ubuntu with apt:
$ apt-get install -y enchant
Install pre-commit hooks:
$ prek install
Linting¶
Run lint tools either by committing, or with:
$ prek run --all-files --hook-stage pre-commit --verbose
$ prek run --all-files --hook-stage pre-push --verbose
$ prek run --all-files --hook-stage manual --verbose
Running Tests¶
Run pytest:
$ pytest
Documentation¶
Documentation is built with Sphinx and published to GitHub Pages.
Run the following commands to build and view documentation locally:
$ uv run --group=dev sphinx-build -M html docs/source docs/build -W
$ python -c 'import os, webbrowser; webbrowser.open("file://" + os.path.abspath("docs/build/html/index.html"))'
Release Process¶
See Release Process.