From 024b8849f60868d693f8f55b287e7e4180a40da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Sat, 5 Mar 2022 14:24:58 -0300 Subject: [PATCH] GitHub Super Linter: ignore test json, zip, sol files These test files are a large part of the repository, and do not need to be linted. The large number of files makes the enumeration slow when performed by the Super Linter, which results in CI jobs taking considerably long. This PR ignores said files in hopes to speed up the CI workflows. It also switches the Super Linter image to the slim version, which should be slightly faster to download. Fixes: #1084 --- .github/workflows/black.yml | 3 ++- .github/workflows/linter.yml | 3 ++- .github/workflows/pylint.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 9834a4654b..cc2eb9f25c 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -36,7 +36,7 @@ jobs: cp pyproject.toml .github/linters - name: Black - uses: docker://github/super-linter:v4 + uses: github/super-linter/slim@v4 if: always() env: # run linter on everything to catch preexisting problems @@ -46,3 +46,4 @@ jobs: # Run only black VALIDATE_PYTHON_BLACK: true PYTHON_BLACK_CONFIG_FILE: pyproject.toml + FILTER_REGEX_EXCLUDE: .*tests/.*.(json|zip|sol) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 00c1ad61d8..94bc3a97bb 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -36,7 +36,7 @@ jobs: cp pyproject.toml .github/linters - name: Lint everything else - uses: docker://github/super-linter:v4 + uses: github/super-linter/slim@v4 if: always() env: # run linter on everything to catch preexisting problems @@ -58,3 +58,4 @@ jobs: VALIDATE_JSCPD: false VALIDATE_PYTHON_MYPY: false SHELLCHECK_OPTS: "-e SC1090" + FILTER_REGEX_EXCLUDE: .*tests/.*.(json|zip|sol) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index a803ad932c..c4b7c36dfe 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -36,7 +36,7 @@ jobs: cp pyproject.toml .github/linters - name: Pylint - uses: docker://github/super-linter:v4 + uses: github/super-linter/slim@v4 if: always() env: # run linter on everything to catch preexisting problems @@ -47,3 +47,4 @@ jobs: VALIDATE_PYTHON: true VALIDATE_PYTHON_PYLINT: true PYTHON_PYLINT_CONFIG_FILE: pyproject.toml + FILTER_REGEX_EXCLUDE: .*tests/.*.(json|zip|sol)