<#19532 Pyright output is fugly> Issue created by ...
# github-notifications
c
#19532 Pyright output is fugly Issue created by bobthemighty Is your feature request related to a problem? Please describe. Since we run pyright in a sandbox, the paths listed in output are unnecessarily long and yucky. It's really hard to read the resulting output.
Copy code
[...]
Found 436 source files
pyright 1.1.274
/private/var/folders/41/65mtw91x2b55t__32h793c1r0000gn/T/pants-sandbox-9nuQlH/src/learning/examples/cross_val/cross_val.py
  /private/var/folders/41/65mtw91x2b55t__32h793c1r0000gn/T/pants-sandbox-9nuQlH/src/learning/examples/cross_val/cross_val.py:63:5 - error: Argument missing for parameter "job_type" (reportGeneralTypeIssues)
  /private/var/folders/41/65mtw91x2b55t__32h793c1r0000gn/T/pants-sandbox-9nuQlH/src/learning/examples/cross_val/cross_val.py:63:5 - error: Argument missing for parameter "job_type" (reportGeneralTypeIssues)
  /private/var/folders/41/65mtw91x2b55t__32h793c1r0000gn/T/pants-sandbox-9nuQlH/src/learning/examples/cross_val/cross_val.py:68:20 - error: "splitting" is not a known member of module (reportGeneralTypeIssues)
Describe the solution you'd like We could use the
--output-json
argument of pyright to get the output, and format it more neatly.
Copy code
Found 436 source files
pyright 1.1.274

src/learning/examples/cross_val/cross_val.py:
  - 63:5 - error: Argument missing for parameter "job_type" (reportGeneralTypeIssues)
  - 68:20 - error: "splitting" is not a known member of module (reportGeneralTypeIssues)
Describe alternatives you've considered I opened a speculative issue on the pyright repository to ask whether they'd support a
reportingRoot
param that would let us strip the pants sandbox dir from output, but no dice. Additional context I'm happy to have a pop at this one assuming it's actually a good idea. pantsbuild/pants