Clone the repository. Move into the directory on your terminal.
Install dependencies for development.
uv syncInstall pre-commit to run a battery of automatic quick fixes against your work.
uv run pre-commit installYou can run unit tests to verify the library is working with the following:
uv run pytest --cov -svWe also enforce ruff for linting, handled primarily via pre-commit. You can run it manually like so:
uv run ruff check ./datawrapperWe also enforce static typing with mypy, also handled via pre-commit. You can run it manually like so:
uv run mypy ./datawrapper --ignore-missing-importsBefore submitting your code please do the following steps:
- Add any changes you want
- Add tests for the new changes
- Run tests
- Run the pre-commit hooks
- Edit documentation if you have changed something significant
Now you're ready to submit your pull request.