From 5cbdcea91638f0147439bd200b2ff31ffc065f1f Mon Sep 17 00:00:00 2001 From: Martin Corredor Date: Thu, 16 Jun 2022 13:59:40 -0700 Subject: [PATCH 1/3] add unused import --- parlai/tasks/amazon_qa/agents.py | 1 + 1 file changed, 1 insertion(+) diff --git a/parlai/tasks/amazon_qa/agents.py b/parlai/tasks/amazon_qa/agents.py index 64ca09b31c0..d861ca63d28 100644 --- a/parlai/tasks/amazon_qa/agents.py +++ b/parlai/tasks/amazon_qa/agents.py @@ -9,6 +9,7 @@ from .build import build, RESOURCES import os import json +import re EXISTING_KEYS = [ From bbd57881732ec064cdd15522c2d5117af78861c4 Mon Sep 17 00:00:00 2001 From: Stephen Roller Date: Fri, 17 Jun 2022 11:12:29 -0400 Subject: [PATCH 2/3] Test lint. --- .github/workflows/lint.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3312ce287ce..66f32933323 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -37,7 +37,7 @@ jobs: - name: Run flake8 run: | set -eux - pip install -q flake8 flake8-bugbear flake8-black docformatter==1.3.0 black==19.3b0 + pip install -q flake8 flake8-bugbear flake8-black docformatter==1.3.0 black==22.3.0 python setup.py develop --no-deps # get our custom flake8 errors python -c 'import parlai' flake8 --version @@ -51,6 +51,12 @@ jobs: regex: '^(?.*?):(?\d+):(?\d+): (?\w+\d+) (?.*)' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Failure check + run: | + if [ "$(cat ${GITHUB_WORKSPACE}/output-annotations.txt | wc -l)" != "0" ] + then + exit 1 + fi mypy: runs-on: ubuntu-latest From f8d9fde493b20ca1a610b8481f26dd3ec6ad90ac Mon Sep 17 00:00:00 2001 From: Stephen Roller Date: Fri, 17 Jun 2022 11:16:27 -0400 Subject: [PATCH 3/3] Undo lint error. --- parlai/tasks/amazon_qa/agents.py | 1 - 1 file changed, 1 deletion(-) diff --git a/parlai/tasks/amazon_qa/agents.py b/parlai/tasks/amazon_qa/agents.py index d861ca63d28..64ca09b31c0 100644 --- a/parlai/tasks/amazon_qa/agents.py +++ b/parlai/tasks/amazon_qa/agents.py @@ -9,7 +9,6 @@ from .build import build, RESOURCES import os import json -import re EXISTING_KEYS = [