Skip to content

Add command line args to .pre-commit-config bandit entry#1366

Closed
bmos wants to merge 6 commits intomove-coop:mainfrom
bmos:pre-commit_bandit_args
Closed

Add command line args to .pre-commit-config bandit entry#1366
bmos wants to merge 6 commits intomove-coop:mainfrom
bmos:pre-commit_bandit_args

Conversation

@bmos
Copy link
Contributor

@bmos bmos commented Mar 20, 2025

Bandit is flagging too much when run via pre-commit because it's missing the args we use in the documentation + ci workflow. I had included this in my first bandit pre-commit PR but I must have lost it when rebuilding the second PR.

Closes #1362

@github-actions
Copy link

github-actions bot commented Mar 20, 2025

Coverage report

This PR does not seem to contain any modification to coverable code.

Copy link
Collaborator

@austinweisgrau austinweisgrau left a comment

Choose a reason for hiding this comment

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

I ran pre-commit run --all and got

[main]  ERROR    pyproject.toml -r -ll -ii : Could not read config file.

@bmos bmos force-pushed the pre-commit_bandit_args branch from 2d4fa0c to 845ad7d Compare March 24, 2025 17:41
@bmos bmos marked this pull request as draft March 24, 2025 17:42
@bmos bmos force-pushed the pre-commit_bandit_args branch from 6223ff1 to 3f4c51a Compare March 24, 2025 18:06
@bmos bmos force-pushed the pre-commit_bandit_args branch from 97f105b to 0e9c118 Compare March 25, 2025 15:04
@bmos bmos marked this pull request as ready for review March 25, 2025 22:56
@austinweisgrau
Copy link
Collaborator

Hey @bmos , it seems like a lot of out-of-scope changes are now included in this PR, can you clarify?

@bmos bmos force-pushed the pre-commit_bandit_args branch from 0dbb94b to 6d9d30c Compare March 25, 2025 23:23
@bmos bmos marked this pull request as draft March 25, 2025 23:23
@bmos bmos force-pushed the pre-commit_bandit_args branch from 6d9d30c to 94f9095 Compare March 25, 2025 23:28
@bmos bmos marked this pull request as ready for review March 25, 2025 23:42
@bmos bmos requested a review from austinweisgrau March 25, 2025 23:42
Copy link
Collaborator

@austinweisgrau austinweisgrau left a comment

Choose a reason for hiding this comment

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

looks good!

@bmos bmos closed this Apr 26, 2025
@bmos bmos deleted the pre-commit_bandit_args branch April 26, 2025 12:13
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.

DISCUSSION: How to handle unrelated bandit complaints

3 participants