From 9118b98c8968a496e0b31803ba1d30427d99b4d6 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sat, 1 Oct 2022 11:29:41 +0100 Subject: [PATCH] Add pylint-exit --- .github/workflows/ci.yml | 2 +- requirements-dev.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 163ebdc..975e667 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt && pip install -r requirements-dev.txt - name: Lint - run: pylint --recursive=yes --output-format=parseable --output=lintreport.txt . + run: pylint --recursive=yes --output-format=parseable --output=lintreport.txt . || pylint-exit $? - name: Run test suite run: | coverage run -m py.test -v --junitxml=testresults.xml diff --git a/requirements-dev.txt b/requirements-dev.txt index df0ec7f..827ef5a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,6 @@ black coverage pylint +pylint-exit pytest requests-mock