Installation
Requirements
- Python 3.10 or higher
Install
ProTest is not yet on PyPI. Install directly from GitHub:
# With uv (recommended)
uv add git+https://github.com/renaudcepre/protest.git
# With pip
pip install git+https://github.com/renaudcepre/protest.git
Install from source (development)
Optional: Rich Output
ProTest automatically uses Rich for better terminal output if installed. If Rich is not available, it falls back to plain ASCII output.
IDE / type checker setup
ProTest ships a py.typed marker, so Pyright, mypy and Pylance pick up
its type hints once it is installed in the project's virtual env.
If your editor reports Import "protest" could not be resolved, point
your type checker at the right interpreter:
- VS Code / Pylance: open the command palette → Python: Select
Interpreter → choose
.venv/bin/python(the oneuvcreated). - Pyright (CLI/standalone): add a
pyrightconfig.jsonnext to yourpyproject.toml:
- mypy: run via
uv run mypy ...so it inherits the same interpreter, or setpython_executableinmypy.ini.
Once configured, no extra stub package or plugin is needed - protest exposes its own types directly.