fix: update pylint to ignore import-errors (#5927)

-re-instates previous super-linter pylint functionality

-ignoring import errors is desired as super-linter does not
 support installing dependencies as it runs

-creates a new test case file for confirming
 import-errors are disabled this consists of a 3rd
 party import and a basic usage
This commit is contained in:
Shop-kins 2024-07-31 08:27:11 +01:00 committed by GitHub
parent 20c4df58c0
commit eec862d0ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -2,3 +2,10 @@
# Use multiple processes to speed up Pylint. # Use multiple processes to speed up Pylint.
jobs=0 jobs=0
[MESSAGES CONTROL]
# Ignoring Import Errors is desired as super-linter
# does not support installing dependencies as it runs
disable=import-error

View file

@ -0,0 +1,5 @@
"""Test Python file for Pylint."""
import pytest
print(pytest)