Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bandit to pre-commit #9

Merged
merged 1 commit into from
Mar 9, 2023
Merged

Add bandit to pre-commit #9

merged 1 commit into from
Mar 9, 2023

Conversation

RobbeSneyders
Copy link
Member

Final check to migrate from the Bitbucket pipelines.


# Write file paths to a text file before piping
Copy link
Member Author

Choose a reason for hiding this comment

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

This code threw bandit warnings, so I rewrote it as a shorter piece of code that still throws bandit warnings and suppressed them 😅

liccheck = "^0.7.3"
pylint = "2.16.4"
pre-commit = "^3.1.1"

[tool.bandit]
exclude_dirs = ["*/mlpipelines/components/sd_finetuning_component/src/train_text_to_image.py"]
Copy link
Member Author

Choose a reason for hiding this comment

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

We should add bandit for the components once they're migrated

Copy link
Contributor

@NielsRogge NielsRogge left a comment

Choose a reason for hiding this comment

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

Thanks for adding

@RobbeSneyders RobbeSneyders merged commit 41c2c50 into main Mar 9, 2023
PhilippeMoussalli added a commit that referenced this pull request Mar 14, 2023
Final check to migrate from the Bitbucket pipelines.
@RobbeSneyders RobbeSneyders deleted the feature/bandit branch May 15, 2023 16:30
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
Final check to migrate from the Bitbucket pipelines.
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.

2 participants