diff --git a/.github/worflows/backend_lint.yml b/.github/workflows/backend_lint.yml similarity index 86% rename from .github/worflows/backend_lint.yml rename to .github/workflows/backend_lint.yml index ce81737..8c4ac3b 100644 --- a/.github/worflows/backend_lint.yml +++ b/.github/workflows/backend_lint.yml @@ -9,7 +9,7 @@ on: pull_request: jobs: - lint: + backend_lint: runs-on: ubuntu-latest strategy: matrix: @@ -25,10 +25,11 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install flake8 - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + python -m pip install pipenv + # if [ -f Pipfile ]; then pipenv install; fi - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 ./classquiz --count --show-source --statistics + flake8 . --count --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