Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Example of an una monorepo using the Modules style

License

Notifications You must be signed in to change notification settings

carderne/una-example-modules

Repository files navigation

una-example-modules

This is an example of an una monorepo using the Modules style.

Read more about una:

About

This repository is basically the result of the following steps:

rye init una-example-packages
cd una-example-packages
rye add --dev una
rye run una create workspace --style=modules
rye sync
rye run una sync
rye add --dev basedpyright pytest

And then some extra settings added to root pyproject.toml file to get Pyright and Pytest to play nice.

Commands

Sync the una dependency graph (that is, resolve all dependencies between packages in the monorepo):

rye run una sync

Formatting, linting etc (these are specified at the top of the root pyproject.toml).

rye run fmt
rye run lint
rye run check
rye run test

# or just
rye run all

Building

Builds should be run separately from each project directory.

For example:

cd projects/example_project
rye run build
# output will still be in root/dist by default

About

Example of an una monorepo using the Modules style

Topics

Resources

License

Stars

Watchers

Forks

Languages