New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: code quality issues #406
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@withshubh , thanks, that's fantastic! Two things before merging:
- Take a look at my comment on removing
fastapi.Request
import. - Target the PR to develop branch.
@@ -1,7 +1,6 @@ | |||
import sys | |||
|
|||
from fastapi import FastAPI, Depends | |||
from fastapi import Request # See: https://github.com/ets-labs/python-dependency-injector/issues/398 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you, please, leave this import? There was a bug when importing Request
crashed wiring. Follow the link for the details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted the change ✨
@rmk135 Thanks for review! 💖 I have made the changes! |
@rmk135 DeepSource is a code review automation tool that detects code quality issues and helps you to automatically fix some of them. You can use DeepSource to track test coverage, Detect problems in Dockerfiles, etc. in addition to detecting issues in code. Can I submit an issue as a feature request for DeepSource integration or PR(consisting of a configuration file only)? |
Thanks for the contribution @withshubh . I've updated changelog 95b0356 and added your name to the list of contributors 3cf14c1. DeepSource tool looks good. The only concern I have now is that it seems too noisy. I'm good to give it a try in a recommendation manner. You're welcome to make a configuration file PR. |
Thank You so much 😍
Here it is #407 |
Description
This PR fixes a few issues that were affecting the code quality.
Summary of changes
else
/elif
whenif
block has areturn
statement