Skip to content

Sample code for: Hardening AI-Generated Python Code With Bandit and Ruff - #933

Open
lpozo wants to merge 1 commit into
masterfrom
bandit-python
Open

lpozo wants to merge 1 commit into
masterfrom
bandit-python

Conversation

@lpozo

@lpozo lpozo commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Where to put new files:

  • New files should go into a top-level subfolder, named after the article slug. For example: my-awesome-article

How to merge your changes:

  1. Make sure the CI code style tests all pass (+ run the automatic code formatter if necessary).
  2. Find an RP Team member on Slack and ask them to review & approve your PR.
  3. Once the PR has one positive ("approved") review, GitHub lets you merge the PR.
  4. 🎉

Code examples for the Hardening AI-Generated Python Code With Bandit and Ruff tutorial. Files live in the bandit-python/ top-level folder, named after the article slug.

Notes for reviewers:

  • insecure/helpers.py is deliberately insecure teaching code. The folder's pyproject.toml has an extend-exclude = ["insecure"] line so the repo's Ruff lint passes.
  • .github/workflows/security.yml is a sample for readers' own repositories. It doesn't run from this repo.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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