Skip to content

Commit e94e4aa

Browse files
Vijay-DukeVijay Iyengar
andauthored
fix: Add --system flag to uv pip install in Code Complexity workflow (#17)
The Code Complexity Analysis job was failing because uv pip install requires either a virtual environment or the --system flag to install packages system-wide. Since the workflow doesn't create a venv, we need to use --system flag. This fixes the error: 'No virtual environment found; run uv venv to create an environment, or pass --system to install into a non-virtual environment' Co-authored-by: Vijay Iyengar <Vijay.Iyengar@team.belong.com.au>
1 parent 93efd3f commit e94e4aa

File tree

3 files changed

+1
-83
lines changed

3 files changed

+1
-83
lines changed

.github/workflows/code-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: Install analysis tools
7171
run: |
72-
uv pip install radon xenon flake8 flake8-cognitive-complexity
72+
uv pip install --system radon xenon flake8 flake8-cognitive-complexity
7373
7474
- name: Cyclomatic Complexity
7575
run: |

gitlab/__init__.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

gitlab/exceptions.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)