Skip to content

Commit eec862d

Browse files
authored
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
1 parent 20c4df5 commit eec862d

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎TEMPLATES/.python-lint‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@
22

33
# Use multiple processes to speed up Pylint.
44
jobs=0
5+
6+
[MESSAGES CONTROL]
7+
8+
# Ignoring Import Errors is desired as super-linter
9+
# does not support installing dependencies as it runs
10+
disable=import-error
11+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Test Python file for Pylint."""
2+
3+
import pytest
4+
5+
print(pytest)

0 commit comments

Comments
 (0)