Example pattern for base + dev requirement layering.
Section: Constraints and Overrides
Maintain layered requirement files
text
text
# requirements-dev.txt
-r requirements.txt
pytest
black
ruffExplanation
A clean way to maintain development-only tooling on top of runtime dependencies.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Constraints and Overrides
Constrain a direct install
Apply version constraints to a direct install.
Install from a wheelhouse offline
Install from local artifacts without contacting indexes.