PyCQA/bandit

config file as described in README.rst does not work

开放

#317 创建于 2018年6月18日

 (5 条评论) (0 个反应) (0 位负责人)Python (559 个派生)batch import
buggood first issue

仓库指标

星标
 (5,660 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. create .bandit file with content:
[bandit]
tests: B101,B102,B301

  1. run bandit -c .bandit -r module/
  2. get error: [main] ERROR .bandit : Error parsing file.

Expected behavior working as described in readme

Bandit version

bandit 1.4.0

Additional context Docs say it should be YAML and not INI. https://bandit.readthedocs.io/en/latest/config.html

贡献者指南