bitter-ability-32190
06/14/2022, 1:57 PM./pants run <tool_subsystem>
?
I want to know what args black
or pylint
accepts. Running ./pants run black -- --help
would be AMAZING
(Also this could possibly replace repl
, if we support the REPLs in run
. Huzzah less goals?
I could do this with my own separate pex_binary
and resolve, but I think we all understand how nasty that it šwitty-crayon-22786
06/14/2022, 7:21 PMI could do this with my own separatefairly nasty, yea. but depends on the usecase⦠if your goal to be identical to what pants does under the hood when sandboxed (identical config detection, identical options, etc) then there is other syncing of options that youād need to do. if your goal isnāt to be identical to what we do in the sandbox, then you donāt necessarily need an identical versionand resolve, but I think we all understand how nasty that it špex_binary
witty-crayon-22786
06/14/2022, 7:22 PMwitty-crayon-22786
06/14/2022, 7:22 PMbitter-ability-32190
06/14/2022, 7:26 PMbitter-ability-32190
06/14/2022, 7:27 PMwitty-crayon-22786
06/14/2022, 7:27 PMwitty-crayon-22786
06/14/2022, 7:28 PM./pants lint --only=black
, right?bitter-ability-32190
06/14/2022, 7:30 PM./pants lint --only=black --black-args='--help'
might work (no specs)? But is cumbersome
Also I'm still thinking about ./pants run [i]python
as a replacement for repl
for Pythonbitter-ability-32190
06/14/2022, 7:30 PMlint
or fmt
? technically we're doing neither linting or formattingwitty-crayon-22786
06/14/2022, 7:31 PMblack
usecase.bitter-ability-32190
06/14/2022, 7:32 PMpytest
witty-crayon-22786
06/14/2022, 7:32 PMbitter-ability-32190
06/14/2022, 7:32 PMbitter-ability-32190
06/14/2022, 7:33 PMpytest definitely wouldnāt have thirdparty deps though.Only if we implemented it that way
witty-crayon-22786
06/14/2022, 7:33 PMbitter-ability-32190
06/14/2022, 7:33 PM--help
s a useful use-casebitter-ability-32190
06/14/2022, 7:33 PMextra_requirements
bitter-ability-32190
06/14/2022, 7:34 PM--help
bitter-ability-32190
06/14/2022, 7:34 PM./pants test random_file.py -- --help
would probably work, but is a bit of an abusebitter-ability-32190
06/15/2022, 1:57 PMcurved-television-6568
06/15/2022, 2:15 PM$ ./pants -ldebug fmt --only=āblackā --black-args=--help src/python/pants/bin:bin
curved-television-6568
06/15/2022, 2:16 PMbitter-ability-32190
06/15/2022, 2:17 PMpytest
š
⢠Now do ipython
šcurved-television-6568
06/15/2022, 2:17 PMcurved-television-6568
06/15/2022, 2:18 PMeww
šbitter-ability-32190
06/15/2022, 2:19 PMrun
, would repl
be as necessary? (We'd need to figure out third party dep handling, but lets not let implementation details stop progress š )curved-television-6568
06/15/2022, 2:22 PMbitter-ability-32190
06/15/2022, 2:24 PMbitter-ability-32190
06/15/2022, 2:24 PMcurved-television-6568
06/15/2022, 2:27 PM