I am running the fmt goal and observing a discrepa...
# general
h
I am running the fmt goal and observing a discrepancy that fmt is not picking up the target when run on all targets, but works when a precise file is given. %
./pants
fmt
::
... ✓ black made no changes. ✓ docformatter made no changes. ✓ isort made no changes. <--- HERE %
./pants
fmt
projects/appsflyer/appsflyer/apps/appsflyer/views.py
... ✓ black made no changes. ✓ docformatter made no changes. + isort made changes. <--- HERE %
./pants
list
::
... projects/appsflyer/appsflyer/apps/appsflyer/views.py <-- THE TARGET IS PRESENT ...
1
b
So this is kinda an isort blight exposed through pants. See https://github.com/pantsbuild/pants/issues/15069
TL;DR isort looks around to deduce first party sources. In the first case it's deducing from the other files. If you only give it one it has nothing to go on 🥲 Easiest fix is to configure isort
h
h
Yeah, I referred this in the example repo.