From 1848532d775ddb14131f3bf0411b04c0fd302f92 Mon Sep 17 00:00:00 2001 From: "deepsource-dev-autofix[bot]" <61578317+deepsource-dev-autofix[bot]@users.noreply.github.com> Date: Tue, 23 Jul 2024 11:09:59 +0000 Subject: [PATCH] style: format code with Ruff Formatter This commit fixes the style issues introduced in cd211fd according to the output from Ruff Formatter. Details: None --- demo_code.py | 12 ++++++------ foo.py | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/demo_code.py b/demo_code.py index 301fcff83..253e9d4a2 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) diff --git a/foo.py b/foo.py index d24575753..d50f7f015 100644 --- a/foo.py +++ b/foo.py @@ -2,12 +2,12 @@ nums = list(range(10)) -if a != 1: - raise AssertionError -print(b, nums) +if a != 1: + raise AssertionError +print(b, nums) -def baz(a= None): +def baz(a=None): if a is None: a = [] return 0 @@ -19,9 +19,9 @@ def aaa(a=None): return 1 -def foo(b= None): - if b is None: - b = [ ] +def foo(b=None): + if b is None: + b = [] z = 12 return 1