From 3dde87bdcddf1c66e275425032bcb296092ec3b8 Mon Sep 17 00:00:00 2001 From: Binbin Zhang Date: Fri, 19 Nov 2021 11:08:55 +0800 Subject: [PATCH] [github] fix lint rule (#7) --- .github/workflows/lint.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bec404d..bf0cac9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -54,16 +54,8 @@ jobs: set -eux pip install flake8==3.8.2 flake8-bugbear flake8-comprehensions flake8-executable flake8-pyi==20.5.0 mccabe pycodestyle==2.6.0 pyflakes==2.2.0 flake8 --version - flake8 | tee ${GITHUB_WORKSPACE}/flake8-output.txt - - name: Add annotations - uses: pytorch/add-annotations-github-action@master - with: - check_name: 'flake8-py3' - linter_output_path: 'flake8-output.txt' - commit_sha: ${{ steps.get_pr_tip.outputs.commit_sha }} - regex: '^(?.*?):(?\d+):(?\d+): (?\w\d+) (?.*)' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + flake8 + if [ $? != 0 ]; then exit 1; fi cpplint: runs-on: ubuntu-latest