Contributing¶
Any contributions to NAV123D are welcome! Complete guidelines will be added along the way.
Setting up a development environment¶
We recommend a fresh conda environment with Python 3.12 (any of Python 3.9–3.12 works).
Clone the repository:
git clone git@github.com:DanielDauner/nav123d.git cd nav123d
Create and activate the environment:
conda create -n nav123d python=3.12 -y conda activate nav123d
Install the package with its development dependencies (editable install):
pip install uv uv pip install -e .[dev]
The
devextra addspyright,ruff,pre-commit,pytest, andpytest-cov. To also build the documentation locally, install thedocsextra (uv pip install -e .[dev,docs]).Install the pre-commit hooks so they run automatically on every commit:
pre-commit installTo check that everything is wired up correctly, run the hooks against the whole codebase once:
pre-commit run --all-files
Before opening a pull request¶
Run the linters and formatter (these also run via pre-commit):
ruff check .andruff format ..Run the test suite:
pytest. (kinda useless atm).