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