-
Notifications
You must be signed in to change notification settings - Fork 44
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
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.
Please, sync with master and don't remove any code
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' |
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.
we use python3.11
from .celery_conf import app | ||
|
||
connector = DBConnector() | ||
|
||
|
||
# @app.task(name="run_loan_states_computation_for_hashtack_v0") |
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.
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 |
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.
please, leave these imports
|
||
|
||
# @app.task(name="run_loan_states_computation_for_hashtack_v1") | ||
# def run_loan_states_computation_for_hashtack_v1(): |
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.
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") |
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.
don't remove any code
|
||
__ | ||
|
||
|
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.
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", |
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.
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 |
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.
Don't remove any code, please!!!!
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. |
|
@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 |
addresses #262