<#20476 How do I disable a `pants lint ::` specifi...
# github-notifications
c
#20476 How do I disable a `pants lint ::` specific warning globally New discussion created by andzhelo Hi, I'm using pants lint and getting huge amount of warnings like: "[WARN] The target test1/test1.py:../../../sources imports
click
, but Pants cannot safely infer a dependency because more than one target owns this module, so it is ambiguous which to use: ['test2/src:requirements', 'test1/src:requirements']. Please explicitly include the dependency you want in the
dependencies
field of test1/src/test1.py:../../../sources, or ignore the ones you do not want by prefixing with
!
or
!!
so that one or no targets are left. Alternatively, you can remove the ambiguity by deleting/changing some of the targets so that only 1 target owns this module. Refer to https://www.pantsbuild.org/v2.19/docs/troubleshooting#import-errors-and-missing-dependencies. " Is there a way to disable it? pantsbuild/pants