loud-stone-83419
02/22/2021, 9:13 PMloud-stone-83419
02/22/2021, 9:14 PM[GLOBAL]
pants_version = "1.30.3"
loud-stone-83419
02/22/2021, 9:14 PMwitty-crayon-22786
02/22/2021, 9:14 PMfresh-architect-74417
02/22/2021, 9:35 PMhigh-egg-2153
02/23/2021, 2:56 PM./pants fmt ::
isort alters "subfolder/app.py" and properly separates my third party imports. If I run:
./pants fmt subfolder::
or ./pants fmt subfolder:lib
isort alters "subfolder/app.py" and puts all my imports back together. Guessing I should see the same behaviour in both cases?
Running pants==2.2.0 and isort==5.7.0acceptable-guitar-79854
02/23/2021, 8:50 PMaverage-australia-85137
02/24/2021, 5:32 PMsrc/BUILD
python_library(
name='server'
)
src/app.py
which imports fraud.api
I would assume that fraud/api.py would be included in the ./pants dependencies --transitive src:server
output? However it is not present - (it is very possible that I am misunderstanding the dependency inference capabilities)happy-alarm-36194
02/26/2021, 12:04 AMhundreds-father-404
02/26/2021, 12:10 AMhappy-alarm-36194
02/26/2021, 12:16 AMhundreds-father-404
02/26/2021, 12:18 AMpsutil
because it's prebuilt for youhappy-alarm-36194
02/26/2021, 12:20 AMhundreds-father-404
02/26/2021, 12:20 AMI'm kind of worried it will install extra dependencies on my system. Will it?Depends what you mean - Pants will download things like Pytest and your 3rd party dependencies so that it can run these tools, but that happens in
~/.cache/pants
and won't leak into your system
If you install Pants via the ./pants
script, pip will also install Pants dependencies into ~/.cache/pants/setup
. If you use the Pex approach, that part is skippedhundreds-father-404
02/26/2021, 12:21 AMBut wouldn't that mean you have to download a larger file, with all the dependecies?Indeed. Although, with the normal
./pants
script, pip will still have to download those deps either way (unless already cached)happy-alarm-36194
02/26/2021, 12:22 AMplain-sundown-25537
02/26/2021, 2:08 AMlimited-insurance-37393
02/26/2021, 2:30 PMhelpful-lunch-92084
03/01/2021, 7:05 PMdjango
module. Seems like it’s losing sys.path information.
I tried using --loop
and disabling the django autoreload functionality hoping pants could do that for me but when testing a file change pants wasn’t restarting the run goal.
Any ideas?witty-crayon-22786
03/01/2021, 7:09 PMwitty-crayon-22786
03/01/2021, 7:11 PMwitty-crayon-22786
03/01/2021, 7:12 PMwitty-crayon-22786
03/01/2021, 7:18 PMhelpful-lunch-92084
03/01/2021, 7:30 PMhelpful-lunch-92084
03/01/2021, 7:30 PMwitty-crayon-22786
03/01/2021, 7:31 PMhelpful-lunch-92084
03/01/2021, 7:44 PMwitty-crayon-22786
03/01/2021, 7:45 PMhelpful-lunch-92084
03/01/2021, 7:45 PMwitty-crayon-22786
03/01/2021, 7:46 PM2.3.x