question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Codes B301-B306 conflict with openstack/bandit (via. flake8-bandit)

See original GitHub issue

Similar situation to #20, there are conflicts across codes B301-B306.

https://github.com/openstack/bandit:

The following tests were discovered and loaded:
  ...
  B301  pickle
  B302  marshal
  B303  md5
  B304  ciphers
  B305  cipher_modes
  B306  mktemp_q

In my situation:

  • When both are installed, bandit is still available while bugbear is deactivated
  • If I uninstall bandit, bugbear is activated and works as expected

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
myiicommented, Apr 1, 2018

@ambv You hit the nail on the head about Vim Syntastic:

  • changing codes to use more than one character might not work with your editor integrations (like Syntastic) because the authors often use a very limited regex that was only tested with the builtin warnings.

And I was mistaken when I said:

The thing is that it works fine with other plugins, such as displaying the RSTxxx violations, etc. So there must be a way to do it.

I’ve since tried to fix the Flake8 syntax checker used by Syntastic and I’ve filed a bug on their issue tracker.

No need to respond; just giving credit where it’s due.

2reactions
myiicommented, Mar 29, 2018

@tylerwince Thanks for that. Upgraded to 1.0.2 and all working well.

@ambv Since we’ve got a resolution, I’m closing this issue. Thanks for the feedback above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug #1759643 “Codes B301-B306 conflict with flake8-bugbear”
The conflict is not with flake8-bandit but rather with openstack/bandit. There are two projects that are involved here:.
Read more >
Security/Projects/Bandit - OpenStack Wiki
Bandit is a security linter for Python source code, utilizing the ast module from the Python standard library. The ast module is used...
Read more >
Bandit Documentation - Read the Docs
Bandit is a tool designed to find common security issues in Python code. To do this, Bandit processes each file, builds.
Read more >
flake8-bandit - PyPI
Automated security testing built right into your workflow! You already use flake8 to lint all your code for errors, ensure docstrings are formatted...
Read more >
Bandit を使って Python コードのセキュリティをチェック ...
pip install bandit 正しくインストールされていれば以下コマンドでバージョンを確認可能 ... Codes B301-B306 conflict with openstack/bandit (via.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found