Clone this repository with the --recursive flag.
git clone git@github.com:narwhals-dev/narwhals-daft.git narwhals-daft-dev --recursive
cd narwhals-daft-devMake a virtual environment and activate it.
uv venv -p 3.12
. .venv/bin/activateInstall pre-commit.
uv pip install pre-commit
pre-commit installuv pip install -e . --group testsand also fetch and install Narwhals as a git submodule:
git submodule update --init --recursive
uv pip install -e narwhalsKeep daft to the latest version:
uv pip install daft -UTo run the tests:
python run_tests.pyAny additional arguments you pass will be passed down to pytest, e.g.
python run_tests.py -xTo run type-checking:
pyright narwhals_daftIf your changes add new functionalities, update the tests:
python update_run_tests.pyRun
. utils/submodule_update.shCheck that tests still run, update run_tests.py if necessary, and open a PR.