-
Notifications
You must be signed in to change notification settings - Fork 23
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
Pass configuration to bandit #3
Comments
@phillbaker -- I am just picking back up on this project and adding a few new features as well as cleaning up some of the codebase. This plugin will follow your flake8 config already, are you thinking we should add support for the |
Hey @tylerwince, glad to hear! I think my suggestion was to put some of the
But pulling from the bandit.yml file also seems great! |
Ah, this makes sense. I think that seems like a reasonable thing. Maybe something like:
|
Update on this: flake8-bandit will now honor a |
Either read |
Does this still work? I'm trying w/ I have a
This uses my exclude:
But this doesn't:
|
If you'd accept a PR let me know and I can look into it... |
@shapiromatron - I would definitely accept a PR! Thanks for taking a look |
Thanks @tylerwince can you confirm that this likely is an issue for others as well? Should I use the |
It is likely a problem across the board. This was never really implemented fully and was kind of a hack when I first put it in. I think the main part of the codebase that applies is here: flake8-bandit/flake8_bandit.py Lines 46 to 57 in e5834e7
|
Thanks @tylerwince I'll have something soon... |
@tylerwince PR submitted #17 ; note that this bumps python minimum version to 3.6 as currently implemented. |
Is this remaining open because we still can't pass a configuration of whatever name we'd like? This would be useful to pass the flake8 config with a |
It looks like the latest version on pypi is before this change; the author hasn't released a new version to pypi. https://pypi.org/project/flake8-bandit/#history To use this feature, you'll need to pull the package from github. |
Thanks for putting this together - was just about to start something similar.
What do you think about adding the ability to pass configuration (exclude files, recursive, etc.) from the flake configuration?
The text was updated successfully, but these errors were encountered: