bitter-ability-32190
01/03/2022, 4:28 PMunowned-dependency-behavior
on).
I'm thinking it'd be really convenient to do:
import foo # pants: ignore
bitter-ability-32190
01/03/2022, 4:29 PMtry:
import .modname
except ImportError:
import modname
specifically to handle how the module is distributed vs testedhappy-kitchen-89482
01/03/2022, 4:32 PMpolite-garden-50641
01/03/2022, 4:36 PM!
see https://www.pantsbuild.org/docs/reference-python_sources#codedependenciescode)bitter-ability-32190
01/03/2022, 4:54 PMhundreds-father-404
01/03/2022, 4:57 PMbitter-ability-32190
01/03/2022, 5:10 PMbitter-ability-32190
01/03/2022, 7:06 PMhundreds-father-404
01/03/2022, 7:11 PMshellcheck
pragma with a Pants one. Shellcheck would still work, but be underdocumented perhaps?
It's weird to have a Shellcheck pragma to make Pants happy if you're not even using Shellcheck. (I guess you could just directly add the dep to the BUILD file instead)curved-television-6568
01/03/2022, 8:17 PMcurved-television-6568
01/03/2022, 8:18 PMbitter-ability-32190
01/04/2022, 12:39 AMbitter-ability-32190
01/04/2022, 2:12 AM