cool-easter-32542
07/29/2023, 10:50 AM[...]
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.
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