From 07a6a062bc9710281d2751c4008115df72e77dc4 Mon Sep 17 00:00:00 2001 From: Sourya Vatsyayan Date: Thu, 7 Sep 2023 16:16:25 +0530 Subject: [PATCH 1/3] Update CI.yml --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f6151ad26..e90782d66 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,7 +11,7 @@ jobs: runs-on: [ubuntu-latest] env: - DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} + DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN_DEV }} steps: - name: Checkout code From f438f3e15149c3c097a172da749f6992d8629a67 Mon Sep 17 00:00:00 2001 From: Sourya Vatsyayan Date: Thu, 7 Sep 2023 16:17:52 +0530 Subject: [PATCH 2/3] Update demo_code.py --- demo_code.py | 1 - 1 file changed, 1 deletion(-) diff --git a/demo_code.py b/demo_code.py index 1e336515f..c2244f353 100644 --- a/demo_code.py +++ b/demo_code.py @@ -4,7 +4,6 @@ import os import subprocess import ssl -import nothing # from django.db.models.expressions import RawSQL From 475921ba8be279b7327e0a86027f61ea28ec53dd Mon Sep 17 00:00:00 2001 From: "deepsource-dev-autofix[bot]" <61578317+deepsource-dev-autofix[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 10:48:03 +0000 Subject: [PATCH 3/3] style: Format code with black --- demo_code.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/demo_code.py b/demo_code.py index c2244f353..f431fe7e9 100644 --- a/demo_code.py +++ b/demo_code.py @@ -9,6 +9,7 @@ AWS_SECRET_KEY = "d6s$f9g!j8mg7hw?n&2" + class BaseNumberGenerator: """Declare a method -- `get_number`.""" @@ -34,7 +35,7 @@ class RandomNumberGenerator: def limits(self): return self.limits - + def _test(self): return self.limits @@ -46,6 +47,7 @@ def get_number(self, min_max=[1, 10]): class ImaginaryNumber: """Class to represent an imaginary number.""" + def __init__(self): self.real = 0 self.imaginary = 1 @@ -130,11 +132,13 @@ def chained_comparison(): c = 3 return a < b and b < c + def wrong_callable(): number = ImaginaryNumber() - if hasattr(number, '__call__'): + if hasattr(number, "__call__"): return number() + if __name__ == "__main__": args = ["--disable", "all"] for i in range(len(args)):