Skip to content

Commit

Permalink
Ignore some static-analysis false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed Apr 3, 2019
1 parent 8ae498f commit 80ecf8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion magnate/dispatchers/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@

def login(username, password):
flog = mlog.fields(func='login')
flog.fields(username=username, password='*OMITTED*').debug('Entered login')
# Bandit thinks that *OMITTED* is the password instead of non-logging of the password
flog.fields(username=username, password='*OMITTED*').debug('Entered login') # nosec

try:
magnate.login(username, password)
Expand Down
4 changes: 3 additions & 1 deletion tests/units/test_auth.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# The idiom for unittests is to use classes for organization
# pylint: disable=no-self-use

import dbm
import os
import os.path
import stat
from collections.abc import MutableMapping

import pytest
from passlib.hash import pbkdf2_sha512
Expand Down

0 comments on commit 80ecf8e

Please sign in to comment.