r/learnpython • • 12m ago

How do you centralize tool configurations (ty, ruff, pytest, ...) between multiple repositories?

In our software department we have a few dozen python libraries that different teams maintain, some open source, some closed source. I'm trying to centralize commonalities between them so that all pipelines run the same stages, that all pre-commit hooks are the same, and so on. I got most of it working, except that I don't have a good way to centralize configurations. For example I want all repos to use a common set of ruff linter rules, all documentation builds to use the same template and plugins, pin the most of the [dev] dependencies to the same versions..

Was wondering if anyone has experience with this :) I've been back and forth with Claude for quite a while, but I wasn't a fan of its ideas (using templates, copier, custom scripts, monorepo)

1 Upvotes

1 comment sorted by

•

u/SCD_minecraft 3m ago

Solution for that i saw (but not used personally) is monorepo

Basically, multiple repositories in one acual repository plus some dedicated tool to manage that