Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 907 Bytes

DEVELOPMENT.rst

File metadata and controls

42 lines (24 loc) · 907 Bytes

Development

Dependency management

Dependencies are separated by purpose:

  • Core project dependencies are managed in /pyproject.toml.
  • Isolated closure dependencies (i.e. "test" or "docs") are managed in pyproject.toml files in /requirements/ subdirectories.

This isolates resolution of project and development dependency versions.

Updating all dependencies

The command below will update all dependencies, including pre-commit hook versions:

tox -m update

Adding a new dependency

You can edit the desired pyproject.toml file manually, or run a command at the root of the repository like:

poetry add --lock --directory requirements/$CLOSURE "$PACKAGE==*"

After modifying the pyproject.toml file, run:

tox -m update