Skip to content
Closed
Changes from all commits
Commits
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
19 changes: 19 additions & 0 deletions e2e_test_sample.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import os
import subprocess
import ssl

AWS_SECRET_KEY = "d6s$f9g!j8mg7hw?n&2"
Copy link
Copy Markdown
Owner Author

@sourya-deepsource sourya-deepsource Mar 10, 2026

Choose a reason for hiding this comment

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

Hardcoded AWS secret key found in source code

Severity: critical | Category: security

Storing secrets like AWS_SECRET_KEY directly in source code is a security risk. Use environment variables or a secrets manager instead.

Suggested fix:

Suggested change
AWS_SECRET_KEY = "d6s$f9g!j8mg7hw?n&2"
AWS_SECRET_KEY = os.environ.get("AWS_SECRET_KEY", "")

Autofix™ verified this patch. However, please review before accepting. AI can make mistakes.



class BaseNumberGenerator:
"""Declare a method -- `get_number`."""

def __init__(self):
self.limits = (1, 10)

def get_number(self, min_max):
raise NotImplemented
Copy link
Copy Markdown
Owner Author

@sourya-deepsource sourya-deepsource Mar 10, 2026

Choose a reason for hiding this comment

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

Use NotImplementedError instead of NotImplemented

Severity: major | Category: bug-risk

NotImplemented is a special singleton used for binary operator fallbacks, not for signalling unimplemented methods. Raise NotImplementedError instead.

Suggested fix:

Suggested change
raise NotImplemented
raise NotImplementedError

Autofix™ verified this patch. However, please review before accepting. AI can make mistakes.


@staticmethod
def smethod():
"""static method."""
Loading