How do I disable a pants lint ::
specific warning globally
#20476
andzhelo
started this conversation in
Development
Replies: 2 comments
-
https://www.pantsbuild.org/2.19/reference/global-options#ignore_warnings |
Beta Was this translation helpful? Give feedback.
0 replies
-
While it's possible to set an ignore pattern... For this particular warning, ignoring it may lead to unexpected behaviour downstream, and generally mean you lose the benefit of Pants' dependency inference (i.e. require a lot more manual
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions