Skip to content

Commit 35386fc

Browse files
committed
Fix issues reported by linter and add .flake8 file for config
1 parent 147f85d commit 35386fc

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
exclude = .git,__pycache__,build,dist,.venv,__init__.py
3+
extend-ignore = C901

src/easy_mongodb_auth_handler/auth.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def __init__(self, mongo_uri, db_name, mail_info=None, blocking=True, readable_e
4545
self.blocking = blocking
4646
self.messages = get_messages(readable_errors)
4747

48-
4948
def _find_user(self, email):
5049
"""
5150
Helper to find a user by email.

src/easy_mongodb_auth_handler/message.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Return message dictionary.
33
"""
44

5+
56
def get_messages(usr_readable):
67
"""
78
Get message dictionary based on user readability preference.

0 commit comments

Comments
 (0)