hundreds-father-404
06/18/2020, 8:56 PMPYTHONPATH
.
This solves a couple issues, primarily around the output of tools like Pytest and linters. Naturally, those are outputting stripped files, which is confusing. So, in V1, we wrote some plugins like the coverage plugin to restore the full name. These plugins are expensive to maintain
The only blocker is that you must tell Pex --inherit-path=fallback
to pick up PYTHONPATH
, but this leaks site packages. Benjy is going to work on https://github.com/pantsbuild/pex/issues/764 to fix thiswitty-crayon-22786
06/18/2020, 8:59 PMwitty-crayon-22786
06/18/2020, 8:59 PMhundreds-father-404
06/18/2020, 9:02 PMit’s not 100% clear how that impacts which files end up included in reportsIt impacts a lot. The Coverage plugin results in our plugin’s logic determining what gets in the final report, based entirely on the
FileTracer
and find_executable_files
things; that is, we only report on files “owned” by Pants
If we get rid of the plugin, Coverage will report on files like it normally would without Pants. And we now only need to use Coverage’s builtin filtering mechanisms to determine what shows up in reports. We don’t need to also make sure our plugin’s FileTracer is correctwitty-crayon-22786
06/18/2020, 9:03 PMwitty-crayon-22786
06/18/2020, 9:03 PMhundreds-father-404
06/18/2020, 9:03 PMwitty-crayon-22786
06/18/2020, 10:02 PMwitty-crayon-22786
06/18/2020, 10:03 PMhundreds-father-404
06/18/2020, 10:03 PMwitty-crayon-22786
06/18/2020, 10:04 PM