Skip to content

Update Python Security Standards#128

Open
sfitz42 wants to merge 2 commits into
DEFRA:mainfrom
sfitz42:update-python-package-security
Open

Update Python Security Standards#128
sfitz42 wants to merge 2 commits into
DEFRA:mainfrom
sfitz42:update-python-package-security

Conversation

@sfitz42
Copy link
Copy Markdown

@sfitz42 sfitz42 commented May 13, 2026

This PR updates the Python coding standards to add package management guidance using uv
and introduces supply-chain security controls via pyproject.toml settings.

Summary of changes:

  • New "Package Management" section covering:
    • uv mandated for all project management (dependency resolution, version pinning, virtual environments)
    • pyproject.toml required for all projects
    • Dependency pinning with exact versions (== specifiers)
    • uv.lock must be committed; uv sync --locked in CI
    • Automated dependency checking (Dependabot / uv pip audit)
  • Supply-chain security settings added:
    • exclude-newer = "1 week" quarantine window for new packages
    • exclude-newer-package per-package override with verification checklist
  • Code block formatting fixed throughout document (indentation removed from fenced blocks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant