Skip to main content
Loading page…
Python Mastery
Chapter 52
Lesson 2 of 5
Dependency Management with uv, Lockfiles & Ruff
Contents
Notes
Tutor
Note
Building on requirements.txt
Loading activity…
Previous
1 / 9
Continue
Contents
Notes
Discussion
Tutor
25 min
9 activities
0 of 9 done
In this lesson
1
Building on requirements.txt
2
Abstract vs. Pinned Dependencies
3
pip-tools, uv, and Poetry
4
Setting Up uv in a New Project
5
Ruff: One Tool for Linting and Formatting
6
Pre-commit: Enforce Quality on Every Commit
7
Library vs. Application Dependencies
8
Tooling Knowledge Check
9
Pro Tip: editorconfig for Cross-Editor Consistency
Objectives
Explain the difference between abstract dependencies and pinned lockfiles
Set up uv or pip-tools to produce a reproducible environment
Configure ruff for linting and formatting in a project
Install and use pre-commit hooks to enforce quality on every commit
Further reading
uv documentation
Ruff documentation
Python Packaging User Guide
Chapter 52 · Professional, Production-Ready Python
Packaging with pyproject.toml
Dependency Management with uv, Lockfiles & Ruff
Git & GitHub Workflow
Clean Code, Refactoring & Architecture
Security Basics & Production Practices
Previous: Packaging with pyproject.toml
Next: Git & GitHub Workflow