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

Make -c support ini as well. #944

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

CTimmerman
Copy link

Fixes #317

Copy link
Member

@ericwb ericwb left a comment

Choose a reason for hiding this comment

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

There is already a command line argument for the ini .bandit file. Use bandit --ini. Also, the .bandit is not the same as the bandit configuration yaml. They are different. The ini file is intended to shortcut command line options, whereas the yaml is to configure various plugins.

@CTimmerman
Copy link
Author

CTimmerman commented Aug 25, 2022

There is already a command line argument for the ini .bandit file. Use bandit --ini. Also, the .bandit is not the same as the bandit configuration yaml. They are different. The ini file is intended to shortcut command line options, whereas the yaml is to configure various plugins.

--ini is still supported and redundant with this patch, as -c can now configure Bandit using YAML, TOML, and INI as well. Python's setup.cfg is in INI format, but being replaced by pyproject.toml in TOML format.

@sigmavirus24
Copy link
Member

These are not the same configuration files. There are specifically different flags for them for that reason.

@CTimmerman
Copy link
Author

These are not the same configuration files. There are specifically different flags for them for that reason.

Then which to use to skip certain tests?

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.

config file as described in README.rst does not work
3 participants