From acd1d89124dbc3974b8812de21345ae9c5ce26ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigbj=C3=B8rn=20Skj=C3=A6ret?= Date: Sat, 4 May 2024 23:00:01 +0200 Subject: [PATCH] this is driving me crazy --- .github/workflows/python-lint.yml | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml index 70dd734e708c0..49a5385df3255 100644 --- a/.github/workflows/python-lint.yml +++ b/.github/workflows/python-lint.yml @@ -10,23 +10,6 @@ jobs: flake8-lint: runs-on: ubuntu-latest name: Lint - if: | - github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3' - || ( - github.event.schedule - && github.repository_owner == 'ggerganov' - ) - || github.event.pull_request - || github.head_ref == 'master' - || ( - github.event.push - && github.event.push.ref == 'refs/heads/master' - && github.repository_owner == 'ggerganov' - ) - || ( - !github.event.push - && github.ref_name == 'master' - ) steps: - name: Check out source repository uses: actions/checkout@v4 @@ -36,6 +19,23 @@ jobs: python-version: "3.11" - name: flake8 Lint uses: py-actions/flake8@v2 + if: | + github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3' + || ( + github.event.schedule + && github.repository_owner == 'ggerganov' + ) + || github.event.pull_request + || github.head_ref == 'master' + || ( + github.event.push + && github.event.push.ref == 'refs/heads/master' + && github.repository_owner == 'ggerganov' + ) + || ( + !github.event.push + && github.ref_name == 'master' + ) with: ignore: "E203,E211,E221,E225,E231,E241,E251,E261,E266,E501,E701,E704,W503" exclude: "examples/*,examples/*/**,*/**/__init__.py,convert-hf-to-gguf-update.py"