This commit is contained in:
piero2c 2022-12-12 12:31:58 -03:00 коммит произвёл Gustavo Rosa
Родитель ee16f1b1db
Коммит ac93faa170
1 изменённых файлов: 8 добавлений и 6 удалений

14
.github/workflows/linter-and-tests.yml поставляемый
Просмотреть файл

@ -31,12 +31,14 @@ jobs:
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# 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: Runs tests
run: |
pytest tests
- name: Catches Python syntax errors and undefined names
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Flake8 linter
run: |
# 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