mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-21 16:21:00 -05:00
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:
parent
20c4df58c0
commit
eec862d0ea
2 changed files with 12 additions and 0 deletions
|
@ -2,3 +2,10 @@
|
|||
|
||||
# Use multiple processes to speed up Pylint.
|
||||
jobs=0
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
|
||||
# Ignoring Import Errors is desired as super-linter
|
||||
# does not support installing dependencies as it runs
|
||||
disable=import-error
|
||||
|
||||
|
|
5
test/linters/python_pylint/python_good_2.py
Normal file
5
test/linters/python_pylint/python_good_2.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
"""Test Python file for Pylint."""
|
||||
|
||||
import pytest
|
||||
|
||||
print(pytest)
|
Loading…
Reference in a new issue