From 6623cc8a822d6b0ddaa39ff560fd554194a40c44 Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Mon, 4 Nov 2024 08:33:32 +0100 Subject: [PATCH 1/3] rework pipeline --- .github/workflows/pylint.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index d1c27b7d..d7108918 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -37,12 +37,5 @@ jobs: git ls-files './apps/data_handler/*.py' - name: Run Pylint - run: | - PYTHON_FILES=$(find ./apps/data_handler -name "*.py") - if [ -n "$PYTHON_FILES" ]; then - echo "Files to lint: $PYTHON_FILES" - python -m pylint $PYTHON_FILES --disable=all --enable=C0114,C0115,C0116,C0301 --max-line-length=150 - else - echo "No Python files found in apps/data_handler/" - exit 1 - fi \ No newline at end of file + run: + pylint $(git ls-files 'data_handler/*.py') --disable=all --enable=C0114,C0115,C0116,C0301 \ No newline at end of file From ad731c7979eacee9fe286ad82927b101757bf0d2 Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Mon, 4 Nov 2024 08:35:00 +0100 Subject: [PATCH 2/3] chnage[ --- .github/workflows/pylint.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index d7108918..598f8a6b 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -37,5 +37,8 @@ jobs: git ls-files './apps/data_handler/*.py' - name: Run Pylint - run: - pylint $(git ls-files 'data_handler/*.py') --disable=all --enable=C0114,C0115,C0116,C0301 \ No newline at end of file + run: | + files=$(git ls-files 'data_handler/*.py') + if [ -n "$files" ]; then + pylint $files --disable=all --enable=C0114,C0115,C0116,C0301 + fi \ No newline at end of file From 1697e620e25264089ffe30bc4c915e53fc45c88b Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Mon, 4 Nov 2024 08:35:35 +0100 Subject: [PATCH 3/3] change to only push --- .github/workflows/pylint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 598f8a6b..4beaddbe 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,6 +1,6 @@ name: Pylint Check -on: [push, pull_request] +on: [push] jobs: lint: