microsoft / component-detection

Scans your project to determine what components you use
MIT License
428 stars 90 forks source link

Add Pip installation report experimental detector #1129

Closed cobya closed 4 months ago

cobya commented 4 months ago

As a follow up to #108 and #980, add experimental Python detection via pip install -r requirements.txt --dry-run --ignore-installed --quiet --report {reportName} or equivalent.

The --report option of the pip install command produces a detailed JSON report of what it did install (or what it would have installed. See https://pip.pypa.io/en/stable/reference/installation-report/#specification for more details.

Serialization specifications:

github-actions[bot] commented 4 months ago

👋 Hi! It looks like you modified some files in the Detectors folder. You may need to bump the detector versions if any of the following scenarios apply:

If none of the above scenarios apply, feel free to ignore this comment 🙂

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 90.90909% with 31 lines in your changes are missing coverage. Please review.

Project coverage is 76.1%. Comparing base (5894c27) to head (382f085).

Files Patch % Lines
...ponentDetection.Detectors/pip/PipCommandService.cs 87.9% 9 Missing and 2 partials :warning:
...onentDetection.Detectors/pip/PipReportUtilities.cs 70.3% 1 Missing and 7 partials :warning:
...ection.Detectors/pip/PipReportComponentDetector.cs 96.1% 3 Missing and 3 partials :warning:
...ft.ComponentDetection.Common/FileUtilityService.cs 0.0% 3 Missing :warning:
...ft.ComponentDetection.Common/PathUtilityService.cs 0.0% 0 Missing and 1 partial :warning:
...tectors/pip/Contracts/PipInstallationReportItem.cs 83.3% 1 Missing :warning:
...entDetection.Detectors/pip/PythonCommandService.cs 93.7% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1129 +/- ## ======================================= + Coverage 75.7% 76.1% +0.4% ======================================= Files 245 255 +10 Lines 10972 11307 +335 Branches 1101 1135 +34 ======================================= + Hits 8307 8615 +308 - Misses 2343 2357 +14 - Partials 322 335 +13 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.