Skip to content

Commit

Permalink
codacy: disable complaining about python assert
Browse files Browse the repository at this point in the history
This silents the reported issue in codacy about python asserts:

    Use of assert detected. The enclosed code will be removed when
    compiling to optimised byte code.

The concern is valid about python asserts, but they are used in tests
and python is not run with optimised byte code.

Solution taken from codacy website
https://support.codacy.com/hc/en-us/articles/207994335-Code-Patterns
  • Loading branch information
cladmi committed Mar 1, 2019
1 parent 2bfa0e4 commit 4a23028
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bandit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# codacy:
# Solve flagged valid Python "assert" statements
skips: ['B101']

0 comments on commit 4a23028

Please sign in to comment.