Modern Python Workflows with uv and Ruff: A Step-by-Step Guide to Python Project Setup, Dependency Management, and Code Quality
Lauritsen, Marcus C.
Synopsis "Modern Python Workflows with uv and Ruff: A Step-by-Step Guide to Python Project Setup, Dependency Management, and Code Quality"
Your Python code works—but setting up projects, managing packages, and fixing formatting problems still feels overwhelming? You don't need to master a dozen tools to build reliable Python projects. Modern Python Workflows with uv and Ruff shows you how to organize your development process, one practical step at a time. Written for readers who know basic Python but are new to professional tooling, this approachable guide requires no prior experience with uv, Ruff, lockfiles, or CI/CD. Clear explanations, manageable exercises, and common troubleshooting scenarios help you learn from mistakes and build confidence as you go. Key FeaturesOne connected project: Build a CSV validation command-line application across the chapters. Practical demonstrations: Follow focused commands, configuration examples, and exercises. Modern tools: Use uv for project and dependency management, Ruff for linting and formatting, pytest for tests, and GitHub Actions for continuous integration. Problem-solving guidance: Diagnose environment, dependency, and automation failures without guesswork. Reusable workflows: Apply what you learn to personal projects, existing codebases, and team repositories. What You Will LearnCreate Python projects and manage interpreters and virtual environments with uv. Configure pyproject.toml, dependencies, optional extras, and uv.lock. Organize packages, modules, and command-line entry points. Find code-quality issues, apply Ruff fixes, and format Python files consistently. Write pytest tests and combine them with automated local checks. Modernize existing projects and establish repeatable team setup procedures. Run quality checks in GitHub Actions and build verified Python distributions. Who This Book Is ForPython learners with a grasp of syntax, functions, and modules; self-taught developers; students; and professionals who want cleaner code and more dependable project workflows. No previous experience with uv or Ruff is needed. Table of ContentsFoundations of Modern Python Development Creating and Configuring Python Projects with uv Dependency Management and Reproducible Environments Building and Organizing Maintainable Python Applications Improving Python Code Quality with Ruff Automating Python Formatting and Code Consistency Testing and Automating Local Quality Checks Team Development and Modernizing Existing Python Projects Continuous Integration and Automated Quality Enforcement Maintaining, Packaging, and Delivering Python Projects Every completed setup, corrected warning, and passing test is progress. Start building cleaner, more reproducible Python projects today—one confident step at a time.