proud-dentist-22844
06/16/2022, 4:18 AMfind ... | xargs -0 cat | grep ...
commands to ensure that certain python modules do not import others. The purpose is to prevent circular dependencies, or to make sure that a client lib does not accidentally depend on server libs that don't get released.
So, are there any pants goodies to help with circular dependency linting?wide-midnight-78598
06/16/2022, 4:50 AMimport-linter
https://github.com/pantsbuild/pants/issues/15247happy-kitchen-89482
06/16/2022, 7:20 AMbitter-ability-32190
06/16/2022, 11:32 AMbitter-ability-32190
06/16/2022, 11:33 AMbitter-ability-32190
06/16/2022, 2:01 PMproud-dentist-22844
06/16/2022, 2:03 PMwide-midnight-78598
06/16/2022, 2:05 PMimport-linter
(https://pypi.org/project/import-linter/) solve your problems?
Curious if there is extra value in trying to get it running with pants, after the PR is mergedproud-dentist-22844
06/16/2022, 2:06 PMimport-linter
sounds like just the thing, but I would rather have something that just reuses pants
dependency graph instead of re-doing all of that work.bitter-ability-32190
06/16/2022, 2:08 PMbitter-ability-32190
06/16/2022, 2:08 PMcurved-television-6568
06/16/2022, 2:44 PMcurved-television-6568
06/16/2022, 2:46 PMproud-dentist-22844
06/16/2022, 3:31 PM<private>
which implicitly prevents the other module from importing it.proud-dentist-22844
06/18/2022, 9:33 PMregex-lint
. That gave me a way to re-implement the current Makefile's (ugly) dependency linting while I wait for visibility
to be available. 😄