Skip to content
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

Sourcery refactored code #69

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Sourcery refactored code #69

wants to merge 6 commits into from

Conversation

the-praxs
Copy link
Contributor

Description

Sourcery refactored code to reflect modern coding practices.

Type of change

  • Code styling or code optimize

What you did

  • Modified string formatting to f-strings
  • Added dict comprehension
  • Replaced inline variables

Sourcery AI and others added 2 commits May 8, 2023 06:55
@lit26
Copy link
Owner

lit26 commented May 9, 2023

I think f-strings only support in Python 3.6 or later

@the-praxs
Copy link
Contributor Author

That is correct. Should I then remove that part of the refactoring?

@lit26
Copy link
Owner

lit26 commented May 10, 2023

That is correct. Should I then remove that part of the refactoring?

I think so.

@lit26 lit26 self-requested a review May 17, 2023 21:27
@@ -158,33 +154,32 @@ def _parse_column(self, cols, raw, fundament_info):
for i, value in enumerate(cols):
if i % 2 == 0:
header = value
elif header == "Volatility":
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this change is necessary. The first if else is just checking whether it is header or value

@lit26
Copy link
Owner

lit26 commented Jul 29, 2023

Resolve conflict also

@the-praxs
Copy link
Contributor Author

Resolve conflict also

Done. Please merge.

@lit26
Copy link
Owner

lit26 commented Aug 3, 2023

There is another issue. Please check.

@the-praxs
Copy link
Contributor Author

@lit26 Can you merge this and close the PR?

@lit26
Copy link
Owner

lit26 commented Sep 11, 2023

https://github.com/lit26/finvizfinance/pull/69/files#r1189156258. You still need to solve this.

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.

None yet

2 participants