Skip to content

Commit

Permalink
Added Bandit configuration to ignore assert usage
Browse files Browse the repository at this point in the history
The Codacy seems to use Bandit which generates warning from
every assert in Pytest tests /1/. This should be ignored
with this file that skips B101: assert_used /2/.

/1/ fossasia/query-server#332
/2/ https://docs.openstack.org/bandit/latest/plugins/assert_used.html

Signed-off-by: Heikki Laaksonen <laaksonen.heikki.j@gmail.com>
  • Loading branch information
heilaaks committed Jan 21, 2018
1 parent 3b6a528 commit c8bfa51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
skips: ['B101']

0 comments on commit c8bfa51

Please sign in to comment.