Also is there a command like `./pants build` that...
# general
a
Also is there a command like
./pants build
that just tries to build a goal?
h
Might you be looking for
package
?
a
no, i have a
python_sources
target and i just want to test if it can build
maybe
repl
?
1
h
Could you explain what you mean by
build
?
The main three I use are
run
,
package
, and
test
.
The
repl
integration is pretty broken imo.
f
./pants check
h
Isn't that only if you have it set up? Our repo would break mypy rules tremendously if we tried to use it since we baselined pyright a while ago.
f
correct, the mypy backend would need to be enabled.
otherwise, I can’t think of anything to “build” Python sources with, one does not really “build” Python sources per se
1
h
@high-yak-85899
repl
is v broken w/ ipython. any other issues? i'm not aware of any
h
Yeah I think this would really depend on what "build" means for Python sources
h
I think tab completion was broken last time I tried with the normal python interpreter. Haven't tried with 2.10 yet.
👀 1
a
@happy-kitchen-89482 means to check it can run at top level, like all the imports etc.
can compile
h
I think static analyzers (i.e.
check
) are your best bet if you can't actually use
run
.
1
h
Yeah,
check
is what we use for this
For JVM that runs the compiler
For Python it runs MyPy
If you don't want to use MyPy, and there is some lighter-weight tool that does the sort of checking you're after, it wouldn't be hard to integrate into the
check
goal
but I don't have an example of such a tool
a
gotcha, thanks!