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

[CY-2528] support more bandit configuration files #23

Closed
fmigneault opened this issue Jan 28, 2020 · 5 comments
Closed

[CY-2528] support more bandit configuration files #23

fmigneault opened this issue Jan 28, 2020 · 5 comments
Assignees
Labels
jira-issue Issue tracked on JIRA Waiting on Info

Comments

@fmigneault
Copy link

It would be great for codacy to support [bandit] section in setup.cfg file and alternatively [tool.bandit] in pyproject.toml file.
The detected configuration files at the moment (.bandit and bandit.yml) are most definitely less often used in repos than the setup.cfg/pyproject.toml variants as they are employed to combine settings for many such static analysis/testing tools.

@mrfyda
Copy link
Member

mrfyda commented Mar 3, 2020

Seems like support for pyproject.toml configuration is still under development on bandit itself: PyCQA/bandit#550.

Let's wait for it to be completed upstream.

@mrfyda mrfyda removed their assignment Mar 3, 2020
@fmigneault
Copy link
Author

Since pyproject.toml support could take a while until is it completed, is it possible to consider doing a first pass for setup.cfg? Codacy bandit reports many 'problems' because it doesn't use my ignore specifications from the setup.cfg.

@mrfyda
Copy link
Member

mrfyda commented Mar 6, 2020

Since the setup.cfg is quite common and not necessarily used as a bandit configuration file, I'm concerned with it wrongly being picked up for most users.

☝️I will however consider your feedback to another feature: being able to customise the configuration file being used - since that would cover your use case.

@machadoit machadoit added the jira-issue Issue tracked on JIRA label Aug 5, 2020
@github-actions
Copy link

github-actions bot commented Aug 5, 2020

Internal ticket created : CY-2528

@github-actions github-actions bot changed the title support more bandit configuration files [CY-2528] support more bandit configuration files Aug 5, 2020
@machadoit
Copy link
Member

Hi @fmigneault

Will close this ticket as will track this internally as a feature request to be prioritised accordingly. Thanks for reaching out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA Waiting on Info
Projects
None yet
Development

No branches or pull requests

5 participants