You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pylint rule unused-import will be enabled for collections running devel sanity tests on Monday, February 13th.
This change is expected to report many errors (hundreds) on large collections. Most collections should expect at least a few errors. Due to the expected impact, advance notice is being given of this change.
Most reported errors will be easily resolved by removing the reported import(s). As a temporary measure, they can be added to the collection's tests/ignore-2.15.txt file:
plugins/modules/something.py pylint:unused-import
However, there may be cases where the import must be kept. This is most likely in code providing compatibility between Python versions. In such cases, using an inline ignore is recommended instead:
The
pylint
ruleunused-import
will be enabled for collections runningdevel
sanity tests on Monday, February 13th.This change is expected to report many errors (hundreds) on large collections. Most collections should expect at least a few errors. Due to the expected impact, advance notice is being given of this change.
Most reported errors will be easily resolved by removing the reported import(s). As a temporary measure, they can be added to the collection's
tests/ignore-2.15.txt
file:However, there may be cases where the import must be kept. This is most likely in code providing compatibility between Python versions. In such cases, using an inline ignore is recommended instead:
The PR for this change can be found here: ansible/ansible#79912
The text was updated successfully, but these errors were encountered: