Skip to content

Configure Bandit to ignore test directories. - #5058

Draft
James Chapman (JC-wk) wants to merge 3 commits into
microsoft:mainfrom
JC-wk:bandit-ignore-assert
Draft

Configure Bandit to ignore test directories.#5058
James Chapman (JC-wk) wants to merge 3 commits into
microsoft:mainfrom
JC-wk:bandit-ignore-assert

Conversation

@JC-wk

@JC-wk James Chapman (JC-wk) commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Resolves #5057

What is being addressed

Ignore bandit warnings in test files

How is this addressed

  • Add bandit config to pyproject.toml and configure devcontainer.json to use it
  • Update CHANGELOG.md

Copilot AI balanced review requested due to automatic review settings August 25, 2026 14:18
@JC-wk
James Chapman (JC-wk) requested a review from a team as a code owner August 25, 2026 14:18
@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown

Unit Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit b41fd52.

♻️ This comment has been updated with latest results.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Configures Bandit to suppress assertion warnings in Python tests and documents the fix.

Changes:

  • Adds Bandit assertion skip patterns.
  • Passes the project configuration to the devcontainer extension.
  • Updates the changelog.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pyproject.toml Adds Bandit assertion configuration.
.devcontainer/devcontainer.json Configures Bandit to load pyproject.toml.
CHANGELOG.md Records the bug fix.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread pyproject.toml Outdated
@JC-wk
James Chapman (JC-wk) marked this pull request as draft August 25, 2026 15:16
@JC-wk James Chapman (JC-wk) changed the title Configure Bandit to ignore asserts in test files Configure Bandit to ignore test directories. Aug 25, 2026
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.

Bandit warnings about use of assert in tests should be ignored

3 participants