bandit 1.6.0 breaks pep8 runs with B104: hardcoded_bind_all_interfaces
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| watcher |
Fix Released
|
Undecided
|
Matt Riedemann | ||
Bug Description
Seen here:
2019-05-09 11:30:40.068998 | ubuntu-bionic | Test results:
2019-05-09 11:30:40.069134 | ubuntu-bionic | >> Issue: [B104:hardcoded
2019-05-09 11:30:40.069226 | ubuntu-bionic | Severity: Medium Confidence: Medium
2019-05-09 11:30:40.069306 | ubuntu-bionic | Location: watcher/
2019-05-09 11:30:40.069486 | ubuntu-bionic | More Info: https:/
2019-05-09 11:30:40.069545 | ubuntu-bionic | 16 server = {
2019-05-09 11:30:40.069604 | ubuntu-bionic | 17 'port': '9322',
2019-05-09 11:30:40.069665 | ubuntu-bionic | 18 'host': '0.0.0.0'
2019-05-09 11:30:40.069698 | ubuntu-bionic | 19 }
2019-05-09 11:30:40.069730 | ubuntu-bionic | 20
2019-05-09 11:30:40.069805 | ubuntu-bionic | 21 # Pecan Application Configurations
2019-05-09 11:30:40.069845 | ubuntu-bionic | 22 app = {
bandit 1.6.0 was released today:
https:/
And is uncapped in test-requirements:
https:/
And not in upper-constraints:
https:/
Seems we should exclude test code from bandit scans.

Hmm, it looks like bandit should already skip tests:
bandit -r watcher -x tests -n5 -ll -s B320
but that -x option doesn't seem to be working.