
Talk Python To Me #540: Modern Python monorepo with uv and prek
75 snips
Mar 13, 2026 Amogh Desai, senior software engineer working on Airflow core and monorepo tooling. Jarek Potiuk, Apache Airflow maintainer and packaging expert. They tour a million-line Python monorepo. They discuss modern packaging PEPs, uv workspaces and uv sync for isolated per-package environments. They explain prek as a workspace-aware replacement for pre-commit and symlink-based shared libraries for modular architecture.
AI Snips
Chapters
Transcript
Episode notes
Monorepo Enables Modular Development At Scale
- Monorepos let many logically separate packages live in one repository while keeping isolated development and testing workflows.
- Jarek explains Airflow stores 100+ subpackages and over a million lines of Python but still treats pieces as separate distributions for development and releases.
Old Bash Scripts Replaced With Python Automation
- Jarek recounts earlier Airflow tooling relied on thousands of lines of bash scripts to manage splitting into distributions.
- He replaced those scripts with Python and modern tools, removing over 10,000 lines of bash and simplifying contributors' workflows.
Collaborate With Tool Maintainers To Shape Features
- Work with upstream tool authors when your project needs features rather than hacking brittle local solutions.
- Jarek describes collaborating with UV and Preck maintainers to shape workspaces and hooks that solved Airflow's needs.
