Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[lint] Fix failure to provide red checks for lint #4608

Merged
merged 3 commits into from
Jun 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -51,6 +51,12 @@ jobs:
regex: '^(?<filename>.*?):(?<lineNumber>\d+):(?<columnNumber>\d+): (?<errorCode>\w+\d+) (?<errorDesc>.*)'
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
Expand Down