-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Improved fraud function #1855
Improved fraud function #1855
Conversation
@@ -251,6 +270,7 @@ def display_fraud(ticker: str, export: str = "", help_text: bool = False): | |||
if help_text: | |||
console.print(help_message) | |||
export_data(export, os.path.dirname(os.path.abspath(__file__)), "dupont", df) | |||
return |
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.
no need for this
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.
I was just doing it to match the other return so pylint would not throw an error.
default=False, | ||
help="Shows the details for calculating the mscore", | ||
) | ||
parser.add_argument( |
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.
let's have it true by default
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.
Are you sure? These calculations are kind of "in the weeds" and will not be valuable to most people.
ticker: str, | ||
export: str = "", | ||
help_text: bool = False, | ||
color: bool = True, |
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.
let's have color True and not being optional
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.
Done!
Description
How has this been tested?
Ran pytest
Checklist:
Others
pre-commit install
.pytest tests/...
.