Overview

Professional Python teams follow consistent practices for dependency pinning to reduce bugs, improve collaboration, and ship reliably.

Guidelines

  1. Document the standard in your team README or CONTRIBUTING.md
  2. Automate enforcement with linters, pre-commit hooks, and CI
  3. Review in code reviews until it becomes habit
  4. Update practices as the codebase and team grow

Checklist

  • Standard documented
  • Tooling configured
  • CI enforces the rule
  • Team trained on rationale

Anti-Patterns

  • Ignoring the practice “for now” on every sprint
  • Inconsistent application across modules
  • No automation — relying on memory alone