From 4cea8fa34fb9aea5d6dc064551a5a908d9d5d162 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 4 Dec 2022 16:55:45 +0000 Subject: [PATCH] github/push-checks: Align flake8 with what's working in pr-checks --- .github/workflows/push-checks.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-checks.yml b/.github/workflows/push-checks.yml index a11234ed..e0c98897 100644 --- a/.github/workflows/push-checks.yml +++ b/.github/workflows/push-checks.yml @@ -51,9 +51,11 @@ jobs: ####################################################################### ####################################################################### - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + # 'Full' run, but ignoring docstring errors ####################################################################### + # explicitly ignore docstring errors (start with D) + # Can optionally add `--exit-zero` to the flake8 arguments so that git diff --name-only --diff-filter=d -z "$DATA" | \ grep -E -z -Z '\.py$' | \ - xargs -0 flake8 . --count --statistics + xargs -0 flake8 --count --statistics --extend-ignore D #######################################################################