mirror of https://github.com/InternLM/InternLM
fix wrong path in CI
parent
a184b29316
commit
d261993a3a
|
@ -18,8 +18,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip install flake8==v3.8.4
|
pip install flake8==v3.8.4
|
||||||
FLAKE_DISABLE_LIST="F403,F405,W504,W503,E203"
|
FLAKE_DISABLE_LIST="F403,F405,W504,W503,E203"
|
||||||
flake8 --max-line-length=120 --ignore=$FLAKE_DISABLE_LIST ./internlm/*
|
flake8 --max-line-length=120 --ignore=$FLAKE_DISABLE_LIST ./*
|
||||||
flake8 --max-line-length=120 --ignore=$FLAKE_DISABLE_LIST ./train.py
|
|
||||||
|
|
||||||
- name: lint-isort
|
- name: lint-isort
|
||||||
run: |
|
run: |
|
||||||
|
@ -30,12 +29,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip install black==22.8.0
|
pip install black==22.8.0
|
||||||
BLACK_EXCLUDE_SETTINGS='\.venv/|\.local/|\.cache/|\.git/'
|
BLACK_EXCLUDE_SETTINGS='\.venv/|\.local/|\.cache/|\.git/'
|
||||||
black --line-length=120 --check --exclude $BLACK_EXCLUDE_SETTINGS ./internlm/*
|
black --line-length=120 --check --exclude $BLACK_EXCLUDE_SETTINGS ./*
|
||||||
black --line-length=120 --check --exclude $BLACK_EXCLUDE_SETTINGS ./train.py
|
|
||||||
|
|
||||||
- name: lint-pylint
|
- name: lint-pylint
|
||||||
run: |
|
run: |
|
||||||
pip install pylint==v2.17.2
|
pip install pylint==v2.17.2
|
||||||
PYLINT_DISABLE_LIST="C0114,C0415,W0212,W0235,W0238,W0621,C0103,R1735,C2801,E0402,C0412,W0719,R1728,W1514,W0718,W0105,W0707,C0209,W0703,W1203"
|
PYLINT_DISABLE_LIST="C0114,C0415,W0212,W0235,W0238,W0621,C0103,R1735,C2801,E0402,C0412,W0719,R1728,W1514,W0718,W0105,W0707,C0209,W0703,W1203"
|
||||||
pylint --rcfile .pylintrc --disable=$PYLINT_DISABLE_LIST ./internlm/*
|
pylint --rcfile .pylintrc --disable=$PYLINT_DISABLE_LIST ./*
|
||||||
pylint --rcfile .pylintrc --disable=$PYLINT_DISABLE_LIST ./train.py
|
|
||||||
|
|
Loading…
Reference in New Issue