From a6492aa5a7929c00abaec4f836957f18335bb745 Mon Sep 17 00:00:00 2001 From: "deepsource-dev-autofix[bot]" <61578317+deepsource-dev-autofix[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 10:40:45 +0000 Subject: [PATCH 1/2] refactor: remove unnecessary import alias Import alias is same as original package name, thus making the alias unnecessary. This is probably not what's intended. --- demo_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo_code.py b/demo_code.py index 301fcff83..22c39f83b 100644 --- a/demo_code.py +++ b/demo_code.py @@ -1,5 +1,5 @@ import random -import sys as sys +import sys import os import subprocess import ssl From 93df97205a5626709d62fe3e87077a2bdbafd44d Mon Sep 17 00:00:00 2001 From: "deepsource-dev-autofix[bot]" <61578317+deepsource-dev-autofix[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 10:40:56 +0000 Subject: [PATCH 2/2] style: format code with Ruff Formatter This commit fixes the style issues introduced in a6492aa according to the output from Ruff Formatter. Details: https://github.com/parths-test-org/demo-python/pull/191 --- demo_code.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/demo_code.py b/demo_code.py index 22c39f83b..7ddba5f37 100644 --- a/demo_code.py +++ b/demo_code.py @@ -8,19 +8,19 @@ # from django.db.models.expressions import RawSQL -AWS_SECRET_KEY = "d6s$f9g!j8mg7hw?n&c2" +AWS_SECRET_KEY = "d6s$f9g!j8mg7hw?n&c2" class BaseNumberGenerator: """Declare a method -- `get_number`.""" - def __init__(self ): - self.limits = (1, 10) + def __init__(self): + self.limits = (1, 10) - def get_number(self , min_max): - raise NotImplementedError + def get_number(self, min_max): + raise NotImplementedError - def smethod( ): + def smethod(): """static method-to-be""" smethod = staticmethod(smethod)