1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-04 11:30:57 +08:00

Add PEP8 style check and add bug report issue template

This commit is contained in:
Jactus
2020-09-27 18:48:50 +08:00
committed by you-n-g
parent dbe8bedf63
commit 1235b9c5c3
3 changed files with 47 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ jobs:
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install flake8 pytest pep8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
@@ -43,6 +43,11 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Check PEP8 python code style
run: |
find . -name \*.py -exec pep8 {} +
- name: Test with pytest
run: |
pytest ../qlib
@@ -57,9 +62,4 @@ jobs:
python scripts/get_data.py qlib_data_cn --target_dir ~/.qlib/qlib_data/cn_data
cd examples
estimator -c estimator/estimator_config.yaml
jupyter nbconvert --execute estimator/analyze_from_estimator.ipynb
jupyter nbconvert --execute estimator/analyze_from_estimator.ipynb