Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
885d3ea
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Aug 28, 2025
bf64b2f
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
95d58d6
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
aa25a37
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
e841d0b
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
9d87d07
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
15e61c1
Update CI.yml
aseem-deepsource Jul 21, 2026
cba6b5f
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
a797387
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
856318c
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
9adb16d
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
0d982fa
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
e831197
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
d9b7b21
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
4a0994d
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
257f075
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
e3e40a7
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
7fadf39
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
6ea180c
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
2617dfd
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
54a91ba
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
cfe77a9
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
8ab791f
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
f9f7261
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
50cc820
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
892f422
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
347f79f
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
3c1744f
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
4ed0b62
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
41b0799
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
6298484
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
f4e6d66
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
06bbf7d
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
1a6e92e
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
3c0ef9a
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
3e749b6
style: format code with Black and Gofumpt
deepsource-dev-autofix[bot] Jul 21, 2026
ee80e23
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
fb6616d
style: format code with Black and Gofumpt
deepsource-autofix[bot] Jul 21, 2026
22a1c02
style: format code with Black and Gofumpt
deepsource-enterprise-internal[bot] Jul 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,23 @@ jobs:
# ./bin/deepsource report --analyzer test-coverage --key go --value-file ./go_coverage.out


# - name: Report test coverage to DeepSource enterprise-dev (python)
# run: |
# curl https://deepsource.io/cli | sh
# export DEEPSOURCE_DSN=$DEEPSOURCE_DSN_ENTERPRISE_DEV
# # create python artifact
# ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
# # create another python artifact
# ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage2.xml
# # existing python artifact with same file so update only
# ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
- name: Report test coverage to DeepSource enterprise-dev (python)
run: |
curl https://deepsource.io/cli | sh
export DEEPSOURCE_DSN=$DEEPSOURCE_DSN_ENTERPRISE_DEV
# create python artifact
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
# create another python artifact
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage2.xml
# existing python artifact with same file so update only
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml

# - name: Report test coverage to DeepSource enterprise-dev (go)
# if: github.event_name != 'pull_request'
# run: |
# curl https://deepsource.io/cli | sh
# export DEEPSOURCE_DSN=$DEEPSOURCE_DSN_ENTERPRISE_DEV
# # create go artifact
# ./bin/deepsource report --analyzer test-coverage --key go --value-file ./go_coverage.out
- name: Report test coverage to DeepSource enterprise-dev (go)
if: github.event_name != 'pull_request'
run: |
curl https://deepsource.io/cli | sh
export DEEPSOURCE_DSN=$DEEPSOURCE_DSN_ENTERPRISE_DEV
# create go artifact
./bin/deepsource report --analyzer test-coverage --key go --value-file ./go_coverage.out


19 changes: 16 additions & 3 deletions assignment.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
(*FIRST,) = [1, 2, 3] # documenting code no fungggg
*FIRST, a, b = [1, 2, 3, 7] # documenting code no fuddddnffffff
a, b = [1, 8, 2, 3, 5, 6,7, 8, 9, 12, 88] # documenting code no fun hehehehehefffffddddd
a, b = [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible unbalanced tuple unpacking with sequence '[1, 8, 2, 3, 5, 6, 7, 8, 9, 12, 88]': left side has 2 labels, right side has 11 values


Possible unbalanced tuple unpacking detected: either left or right side of the statement has more labels. This can raise ValueError while unpacking.

1,
8,
2,
3,
5,
6,
7,
8,
9,
12,
88,
] # documenting code no fun hehehehehefffffddddd
c = 1


def not_covered():
print("hellooooow")
pass
print("hellooooow")
pass
11 changes: 7 additions & 4 deletions demo_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
import subprocess
import ssl


AWS_SECRET_KEY = "d6s$f9g!j8mg7hw?n&2ffffFdgsdgdddddsfddddddgfljwnfjsgsljfbjffffffkldslUwU"
AWS_SECRET_KEY = (
"d6s$f9g!j8mg7hw?n&2ffffFdgsdgdddddsfddddddgfljwnfjsgsljfbjffffffkldslUwU"
)


class BaseNumberGenerator:
Expand Down Expand Up @@ -100,8 +101,9 @@ def tar_something():
def bad_isinstance(initial_condition, object, other_obj, foo, bar, baz):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redefining built-in 'object'


Defining a local variable or function with the same name as a built-in object makes the built-in object unusable within the current scope and makes the code prone to bugs.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`bad_isinstance` doesn't contain any code


The function/method has been left empty here, without any comment or docstring. This can cause confusion later on why this was left empty.

pass


def not_check(x):
if x in (1, 2 ,7,3):
if x in (1, 2, 7, 3):
print("Yes")
elif x != 2 or x != 3:
print("also true")
Expand All @@ -114,7 +116,8 @@ def not_check(x):

elif x in (10, 20, 30):
print("Why even?")



def check(x):
if x in (1, 2, 3):
print("Yes")
Expand Down
1 change: 0 additions & 1 deletion django_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from django.views.decorators.http import require_http_methods



@require_http_methods(["GET", "POST"]) # Not Sensitive?????jjjjjj

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allowing both safe and unsafe methods for a view is unsecure


An HTTP method is safe if it doesn't alter the state of the server i.e it leads to a read-only operation.
Common safe HTTP methods: GET, HEAD, and OPTIONS.
Whereas, POST, PUT, and DELETE are unsafe because they alter the server state.

The use of both safe and unsafe HTTP methods on a view makes the application vulnerable to Cross-Site Request Forgery (CSRF). CSRF protections are responsible for protecting operations performed by unsafe HTTP methods. They do not protect if safe HTTP methods used for a route that can change the state of an application.

It is recommended to use safe HTTP methods only when read-only operations need to be performed. Don't use safe and unsafe methods together.

def current_datetime(request):
now = datetime.datetime.now()
Expand Down
2 changes: 1 addition & 1 deletion miscellaneous.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class Orange:
"""Represents the fruit orange.. """
"""Represents the fruit orange.."""

orange = "#FFA500"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Class member `orange` has same name as its enclosing class `Orange`


There is a class member with the same name (not considering the case difference) as its enclosing class.


Expand Down
Loading