stale-artist-91164
12/16/2020, 10:26 PMhappy-kitchen-89482
12/16/2020, 10:34 PMpants test
, are you asking specifically about pants run
? That should also be possiblestale-artist-91164
12/16/2020, 10:36 PMhappy-kitchen-89482
12/16/2020, 10:57 PMhappy-kitchen-89482
12/16/2020, 10:59 PM./pants test
is how you run unit tests, and there are instructions on how to single step debug into a test here: https://www.pantsbuild.org/docs/python-test-goal#running-tests-interactivelyhappy-kitchen-89482
12/16/2020, 11:01 PM./pants run
is how you would ask Pants to run your app, and the same instructions should workhappy-kitchen-89482
12/16/2020, 11:01 PMhappy-kitchen-89482
12/16/2020, 11:07 PMhappy-kitchen-89482
12/16/2020, 11:09 PMrun
runs your code in a sandbox, so PyCharm may ask you how to map those paths to original source paths. "Auto-detect" should work fine.happy-kitchen-89482
12/16/2020, 11:11 PMhundreds-father-404
12/16/2020, 11:27 PMstale-artist-91164
12/16/2020, 11:41 PMhappy-kitchen-89482
12/16/2020, 11:50 PM./pants run
as well: https://www.pantsbuild.org/v2.2/docs/python-run-goalhappy-kitchen-89482
12/16/2020, 11:50 PMhappy-kitchen-89482
12/16/2020, 11:50 PMsalmon-photographer-72811
04/28/2021, 11:26 PMWe're thinking it'd be helpful to write a guide on integrating with how to integrate with each IDE. This is a good exampleHello! New (potential) Pants user here, and I joined the Slack channel to ask the exact question that the OP posted. Does any documentation exist for integrating Pants with PyCharm and/or VS Code?
happy-kitchen-89482
04/29/2021, 3:47 PMhappy-kitchen-89482
04/29/2021, 5:12 PMpants run
and pants test
, but none for setting up a project. I will add to my TODO list to write those, as they are pretty important.salmon-photographer-72811
04/30/2021, 12:24 AMgit
and virtual environments, for example.happy-kitchen-89482
04/30/2021, 1:30 PMhappy-kitchen-89482
04/30/2021, 1:30 PMhappy-kitchen-89482
08/31/2021, 9:33 AM