Closed scragly closed 5 years ago
Do you know what "Plugin F" is?
flake8-bandit
registers with plugin prefix S
and it appears this is being thrown by the plugin registered with prefix F
, which could potentially be a dependency of this plugin (and thus why it doesn't happen after you remove flake8-bandit
).
if you're interested, I've triaged this here: https://gitlab.com/pycqa/flake8/issues/536
Thanks @asottile for the triage. Super helpful.
I will try to dig into some of this and see if I can get a patch fix in. Thinking it may be possible to reload the import packages so they aren't monkeypatched after performing the bandit analysis.
I will try to take a look here soon. 👍
It's not the actual packages unfortunately, but the data of the tree
object that gets passed through
A bug has been created here and we will track the progress there.
I will leave this open until that issue is closed.
This has been fixed in Bandit 487 and will be released in the next fix version 1.6.1.
Closing this as there is nothing additional that needs to happen on this ticket
:clap: :clap: :clap: thanks for following this through! the flake8 ecosystem thanks you
With Python 3.7 on Ubuntu 16.04,
flake8-bandit
will fail on the following test script:with the following output:
Verbose doesn't help with finding out any additional info: https://hastebin.com/suxebuxebo.txt
This issue only occurs with
flake8-bandit
installed, and occurs with all versions after1.0.2
. Pinning to1.0.2
does not cause the same issue, but this isn't a great resolution.I have tried reproducing the issue on an arch based environment without luck, as it only seems to occur on Ubuntu 16.04.