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

adressing add pylint workflow and fix all issues #268

Closed
wants to merge 11 commits into from

Conversation

sigmadawg
Copy link

addresses #262

@djeck1432 djeck1432 self-requested a review October 30, 2024 20:16
@djeck1432 djeck1432 linked an issue Oct 30, 2024 that may be closed by this pull request
Copy link
Collaborator

@djeck1432 djeck1432 left a comment

Choose a reason for hiding this comment

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

Please, sync with master and don't remove any code

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
Copy link
Collaborator

Choose a reason for hiding this comment

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

we use python3.11

from .celery_conf import app

connector = DBConnector()


# @app.task(name="run_loan_states_computation_for_hashtack_v0")
Copy link
Collaborator

Choose a reason for hiding this comment

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

please, don't remove any code

from data_handler.handlers.liquidable_debt.protocols import (
hashstack_v0,
hashstack_v1,
nostra_alpha,
nostra_mainnet,
zklend,
)

# from data_handler.handlers.loan_states.hashtack_v0.run import HashtackV0StateComputation
Copy link
Collaborator

Choose a reason for hiding this comment

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

please, leave these imports



# @app.task(name="run_loan_states_computation_for_hashtack_v1")
# def run_loan_states_computation_for_hashtack_v1():
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't remove any code

@@ -86,26 +43,15 @@ def run_loan_states_computation_for_nostra_alpha():
)


# @app.task(name="run_loan_states_computation_for_nostra_mainnet")
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't remove any code


__


Copy link
Collaborator

Choose a reason for hiding this comment

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

you have duplicated code

@@ -114,8 +123,10 @@ class ProtocolAddresses:
NOSTRA_EVENTS_MAPPING = {
"Mint": "process_debt_mint_event",
"Burn": "process_debt_burn_event",
"nostra::core::tokenization::lib::nostra_token::NostraTokenComponent::Burn": "process_debt_burn_event",
Copy link
Collaborator

Choose a reason for hiding this comment

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

why did you remove this code?

@@ -27,29 +33,19 @@

# Source: https://docs.nostra.finance/lend/deployed-contracts/lend-alpha#asset-contracts.
NOSTRA_ALPHA_TOKEN_ADDRESSES: list[str] = [
# '0x0061d892cccf43daf73407194da9f0ea6dbece950bb24c50be2356444313a707', # iWBTC
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't remove any code, please!!!!

@sigmadawg sigmadawg closed this by deleting the head repository Oct 30, 2024
@sigmadawg
Copy link
Author

sorry for the inconvenience, im a complete newbie, i tried linting the codes using black, but that didnt entirely fix all the long line issues, so i did some manually and messed up a lot.
If you allow then i will try again and just run the black command.

@djeck1432
Copy link
Collaborator

  1. REad documentation how to use black
  2. Apply only for files which you have changes, NOT For the whole project
  3. @sigmadawg

@mexes20
Copy link
Contributor

mexes20 commented Oct 31, 2024

@sigmadawg If you're having issues, I could help work on it and put up a PR in One hour, if that's okay with you.

cc @djeck1432

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.

Add pylint workflow and fix all issues
3 participants