Replies: 2 comments 1 reply
-
One subtle difference between the separate package for linting and this case is that the common code here is a regular runtime dependency and must also be included in our Docker images whereas the linting package is a dev-dependency that will not need to be included in the final Docker image. |
Beta Was this translation helpful? Give feedback.
-
PDM has monorepo functionality, which allows cross-package dependencies inside a monorepo. I've left a note about this on #286, but it's especially relevant for a question like this @dhruvkb. Probably also when thinking about how to bundle things into a docker image with only the runtime dependencies. |
Beta Was this translation helpful? Give feedback.
-
Problem
Some python code needs to be available in several parts of Openverse stack. Currently, we usually duplicate this kind of code. This sometimes causes it to by out of sync.
What is the best way of sharing this kind of code?
We use a separate package for Openverse linting configuration. Would we need to create a separate package for the common python code to be able to share it?
Additional information
Most of duplicated code is related to data cleaning:
Admittedly, some of these duplicates will be removed after the data normalization project is complete.
Existing issues
Beta Was this translation helpful? Give feedback.
All reactions