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

Add pre-commit #992

Merged
merged 3 commits into from
Mar 25, 2022
Merged

Add pre-commit #992

merged 3 commits into from
Mar 25, 2022

Conversation

you-n-g
Copy link
Collaborator

@you-n-g you-n-g commented Mar 18, 2022

Description

Motivation and Context

How Has This Been Tested?

<! --- Put an x in all the boxes that apply: --->

  • Pass the test by running: pytest qlib/tests/test_all_pipeline.py under upper directory of qlib.
  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Pipeline test:
  2. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

@you-n-g
Copy link
Collaborator Author

you-n-g commented Mar 18, 2022

@SunsetWolf will continue to complete this PR

@you-n-g you-n-g mentioned this pull request Mar 18, 2022
@you-n-g
Copy link
Collaborator Author

you-n-g commented Mar 18, 2022

@SunsetWolf Please add pip install -e .[dev] and pre-commit install to guide the developers

@SunsetWolf
Copy link
Collaborator

Working on some errors prompted by flake8.

qlib/backtest/__init__.py Outdated Show resolved Hide resolved
qlib/backtest/__init__.py Outdated Show resolved Hide resolved
qlib/backtest/__init__.py Outdated Show resolved Hide resolved
@SunsetWolf SunsetWolf force-pushed the add_pre_commit branch 2 times, most recently from 0d496b5 to f82a447 Compare March 24, 2022 14:22
@@ -5,5 +5,39 @@
from qlib.tests.data import GetData


def get_data(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why do you have to change this file?

@SunsetWolf SunsetWolf force-pushed the add_pre_commit branch 2 times, most recently from 05ddd83 to c725fd0 Compare March 25, 2022 03:49
@@ -6,4 +6,4 @@


if __name__ == "__main__":
fire.Fire(GetData)
fire.Fire(GetData().qlib_data)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Are you sure this will work correctly for previous commands?

@you-n-g you-n-g merged commit 5200ff5 into microsoft:main Mar 25, 2022
@you-n-g you-n-g deleted the add_pre_commit branch March 25, 2022 08:56
@you-n-g you-n-g added the enhancement New feature or request label Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants