diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 79f8182..e372db0 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -22,14 +22,19 @@ jobs: uses: actions/setup-python@v3 with: python-version: "3.10" + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install poetry + uses: abatilo/actions-poetry@f295866fdd47fe14b18927b0908ac25ef3d5009a + with: + poetry-version: "1.3.2" + - uses: actions/setup-go@v4 + with: + go-version: '>=1.19.0' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install poetry flake8 poetry install - - name: Lint with flake8 + - name: Run Python lint checks 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 + poetry run pre-commit run --all-files