Skip to content

Conversation

@mchromin
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 18, 2025 13:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for UV virtual environments by updating the code standard module detection logic to check both uv pip list and the standard pip list commands. The changes ensure that the tool can detect installed packages (ruff/flake8) in UV-managed environments.

Key changes:

  • Modified _get_available_code_standard_module() to try uv pip list before falling back to standard pip list
  • Enhanced test coverage for the updated detection logic with multiple scenarios
  • Refactored tests to use the new _run_code_standard_tests() helper function

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
mfd_code_quality/code_standard/checks.py Added UV pip list command as primary detection method with fallback to standard pip
tests/unit/test_mfd_code_quality/test_code_standard/test_checks.py Updated tests to cover UV detection scenarios and refactored to test the new helper function
tests/unit/test_mfd_code_quality/test_mfd_code_quality.py Added mocker fixture and mocking to prevent argparse from interfering with test execution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mfd-intel-bot
Copy link
Contributor

We don't publish DEVs .whl.
To build .whl, run 'pip install git+https://github.com/intel/mfd-code-quality@uv'

@mchromin mchromin force-pushed the uv branch 3 times, most recently from aa0f816 to ac14215 Compare November 18, 2025 15:21
Signed-off-by: Mateusz Chrominski <mateusz.chrominski@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants