Skip to content

[E2E Test] Two-phase review (e2e-two-phase-test-d62575cd)#49

Closed
sourya-deepsource wants to merge 1 commit into
masterfrom
e2e-two-phase-test-d62575cd
Closed

[E2E Test] Two-phase review (e2e-two-phase-test-d62575cd)#49
sourya-deepsource wants to merge 1 commit into
masterfrom
e2e-two-phase-test-d62575cd

Conversation

@sourya-deepsource
Copy link
Copy Markdown
Owner

Automated E2E test. Will be closed automatically.

Comment thread e2e_test_sample.py
import subprocess
import ssl

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

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


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

Comment thread e2e_test_sample.py
self.limits = (1, 10)

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

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`


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

@sourya-deepsource sourya-deepsource deleted the e2e-two-phase-test-d62575cd branch March 10, 2026 10:59
@deepsource-development
Copy link
Copy Markdown

deepsource-development Bot commented Mar 10, 2026

DeepSource Code Review

We reviewed changes in 7f7058a...374889c on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade  

Focus Area: Reliability
Security  

Reliability  

Complexity  

Hygiene  

Feedback

  • Test file used as a throwaway scratchpad
    • Credentials, stray imports and half-implemented logic piled up because the test file served for quick experiments instead of structured tests; extract helpers, move secrets to secure config/fixtures, and keep test code focused and minimal to prevent carryover.
  • No static analysis catching basic errors
    • Unused imports, a convertible-to-static method and incorrect raise forms point to missing linter/type-checker feedback; enabling ruff/flake8/mypy (or similar) will surface these patterns before they land in source.
  • Confusion between values and exception types
    • Raising NotImplemented (a value) or NotImplementedType indicates a misconception about exceptions; always raise exception classes or instances (e.g., raise NotImplementedError()), and codify the expectation so similar mistakes are detected early.

Code Review Summary

Analyzer Status Updated (UTC) Details
Python Mar 10, 2026 10:59a.m. Review ↗
Secrets Mar 10, 2026 10:59a.m. Review ↗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant