Skip to content

Document .gitignore usage for Python policy packs#17139

Merged
meagancojocar merged 1 commit intomasterfrom
fix_issue_17027_gitignore_python_policy_packs
Jan 22, 2026
Merged

Document .gitignore usage for Python policy packs#17139
meagancojocar merged 1 commit intomasterfrom
fix_issue_17027_gitignore_python_policy_packs

Conversation

@joeduffy
Copy link
Copy Markdown
Member

Adds documentation about using .gitignore to exclude unnecessary files (*.pyc, __pycache__/, venv/, .venv/) from published policy pack archives. This helps keep the .tgz package size small.

Fixes #17027

Adds documentation about using .gitignore to exclude unnecessary files
(*.pyc, __pycache__/, venv/, .venv/) from published policy pack archives.
This helps keep the .tgz package size small.

Fixes #17027
@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Jan 19, 2026

Review Summary

This PR adds helpful documentation about using .gitignore to manage Python policy pack size. The change is clear, accurate, and follows the repository's style conventions.

Findings

Style and formatting: ✅ Passes

  • Follows existing blockquote note pattern used in the file
  • Proper indentation and code block formatting
  • Consistent with surrounding content

Content accuracy: ✅ Passes

  • Correctly describes using .gitignore to exclude files from policy pack archives
  • Appropriate examples (*.pyc, pycache/, venv/, .venv/)
  • Accurate explanation of the benefit (keeping package size small)

Language and clarity: ✅ Passes

  • Clear and concise
  • Appropriate level of technical detail
  • Good placement next to the virtual environment configuration note

Technical accuracy: ✅ Passes

  • The patterns shown are standard Python exclusions
  • Correctly explains the effect on the published .tgz archive

Suggestions

No issues found. The documentation addition is well-written and valuable for users looking to optimize their policy pack size.


If you'd like me to review any additional changes or have questions, feel free to mention me (@claude) in the comments.

@pulumi-bot
Copy link
Copy Markdown
Collaborator

@meagancojocar meagancojocar merged commit f921e51 into master Jan 22, 2026
11 checks passed
@meagancojocar meagancojocar deleted the fix_issue_17027_gitignore_python_policy_packs branch January 22, 2026 19:14
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.

Document the use of .gitignore when authoring Python policy packs

3 participants