Skip to content

Remove the bandit configuration file#253

Merged
mcdonnnj merged 1 commit into
developfrom
improvement/remove_bandit_configuration_file
Mar 25, 2026
Merged

Remove the bandit configuration file#253
mcdonnnj merged 1 commit into
developfrom
improvement/remove_bandit_configuration_file

Conversation

@mcdonnnj

Copy link
Copy Markdown
Member

🗣 Description

This pull request removes the bandit configuration file (.bandit.yml) and updates the pre-commit configuration accordingly.

💭 Motivation and context

The configuration file does not do any configuring and it has been removed downstream in cisagov/skeleton-python-library#164.

Note

The same changes made around the bandit configuration file in cisagov/skeleton-python-library#164 should be made to cisagov/skeleton-aws-lambda-python.

🧪 Testing

Automated tests pass.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

The file is not used to configure anything bandit does by default so we
can safely remove it and updated the pre-commit configuration. This is
also acceptable because the configuration file has been removed
downstream in cisagov/skeleton-python-library already.
@mcdonnnj mcdonnnj requested a review from Copilot March 10, 2026 21:58
@mcdonnnj mcdonnnj self-assigned this Mar 10, 2026
@mcdonnnj mcdonnnj requested review from dav3r, felddy and jsf9k as code owners March 10, 2026 21:58
@mcdonnnj mcdonnnj added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Mar 10, 2026
@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Mar 10, 2026

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

This PR removes an effectively no-op Bandit configuration file and updates repository automation to stop referencing it, aligning this repo with the downstream skeleton changes.

Changes:

  • Remove .bandit.yml from the repository.
  • Update the Bandit pre-commit hook to stop passing --config=.bandit.yml.
  • Update GitHub labeler rules to stop matching .bandit.yml.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.pre-commit-config.yaml Removes Bandit hook args that referenced the deleted config file.
.github/labeler.yml Removes .bandit.yml from the test label globs.
.bandit.yml Deletes the unused Bandit configuration file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@github-project-automation github-project-automation Bot moved this from In progress to Reviewer approved in Skeleton Maintenance Mar 11, 2026
@jsf9k

jsf9k commented Mar 11, 2026

Copy link
Copy Markdown
Member

@mcdonnnj - Are you going to create the PR for cisagov/skeleton-aws-lambda-python?

@mcdonnnj

Copy link
Copy Markdown
Member Author

@mcdonnnj - Are you going to create the PR for cisagov/skeleton-aws-lambda-python?

I assumed the change could be made when this PR's changes roll down.

@mcdonnnj mcdonnnj added this pull request to the merge queue Mar 25, 2026
Merged via the queue into develop with commit 72ac03a Mar 25, 2026
17 checks passed
@mcdonnnj mcdonnnj deleted the improvement/remove_bandit_configuration_file branch March 25, 2026 19:47
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Skeleton Maintenance Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file improvement This issue or pull request will add or improve functionality, maintainability, or ease of use

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants