From d82c8ef22738988e5c99467ac760da5ce5a2fa5c Mon Sep 17 00:00:00 2001 From: Kei Oshima Date: Wed, 29 Nov 2023 22:23:14 -0500 Subject: [PATCH] fixing more pylint issues --- Pipfile | 1 + Pipfile.lock | 11 ++++++++++- database/{database.py.py => database.py} | 6 ++++-- 3 files changed, 15 insertions(+), 3 deletions(-) rename database/{database.py.py => database.py} (90%) diff --git a/Pipfile b/Pipfile index 203949d..a85242e 100644 --- a/Pipfile +++ b/Pipfile @@ -15,6 +15,7 @@ setuptools = "*" tomli = "*" typing-extensions = "*" dill = "*" +python-dotenv = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index 4d87ccb..c086eca 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "18a3851420f7ccd24c4c2aa94698a999936c11b8ab3b0e1ea835d7658c066ac9" + "sha256": "1a80dee348b2df596b7981af4d71a317ad60b0bdcbd9749bf36b456bf2a899c4" }, "pipfile-spec": 6, "requires": { @@ -472,6 +472,15 @@ "markers": "python_version >= '3.7'", "version": "==7.4.3" }, + "python-dotenv": { + "hashes": [ + "sha256:a8df96034aae6d2d50a4ebe8216326c61c3eb64836776504fcca410e5937a3ba", + "sha256:f5971a9226b701070a4bf2c38c89e5a3f0d64de8debda981d1db98583009122a" + ], + "index": "pypi", + "markers": "python_version >= '3.8'", + "version": "==1.0.0" + }, "requests": { "hashes": [ "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f", diff --git a/database/database.py.py b/database/database.py similarity index 90% rename from database/database.py.py rename to database/database.py index a8a15aa..c941666 100644 --- a/database/database.py.py +++ b/database/database.py @@ -1,5 +1,7 @@ +""" +database file to connect ot database +""" import os - from pymongo import MongoClient from dotenv import load_dotenv @@ -18,4 +20,4 @@ DB = client[os.getenv("MONGODB_DATABASE")] print("Pinged your deployment. You successfully connected to MongoDB!") except Exception as e: # pylint: disable=broad-except - print(e) \ No newline at end of file + print(e)