Skip to content

Commit b701bf6

Browse files
committed
fix: makefile commands use uv
1 parent ee463bb commit b701bf6

2 files changed

Lines changed: 29 additions & 26 deletions

File tree

.github/workflows/pipeline.yaml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,30 @@ on:
88
- main
99

1010
jobs:
11-
quality:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
11+
quality:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
1515

16-
- name: Install uv
17-
uses: astral-sh/setup-uv@v5
18-
with:
19-
enable-cache: true
20-
cache-dependency-glob: "uv.lock"
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v5
18+
with:
19+
enable-cache: true
20+
cache-dependency-glob: "uv.lock"
2121

22-
- name: "Set up Python"
23-
uses: actions/setup-python@v5
24-
with:
25-
python-version-file: ".python-version"
22+
- name: "Set up Python"
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version-file: ".python-version"
2626

27-
- name: Install the project
28-
run: uv sync --locked --all-groups
27+
- name: Create virtual environment and install dependencies
28+
run: |
29+
uv venv .venv
30+
source .venv/bin/activate
31+
uv pip install -e ".[dev]"
2932
30-
- name: Run quality checks
31-
run: |
32-
source .venv/bin/activate
33-
make lint
34-
make test
33+
- name: Run quality checks
34+
run: |
35+
source .venv/bin/activate
36+
make lint
37+
make test

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ setup:
3434
@./setup.sh
3535

3636
lint:
37-
uv run ruff check .
38-
uv run mypy .
39-
uv run pylint cheatsheet open organize utils --max-line-length=120 \
37+
python -m ruff check .
38+
python -m mypy .
39+
python -m pylint cheatsheet open organize utils --max-line-length=120 \
4040
--disable=missing-function-docstring,missing-module-docstring,missing-class-docstring,too-few-public-methods,c-extension-no-member
4141

4242
format:
43-
uv run black .
44-
uv run ruff check --fix .
43+
python -m black .
44+
python -m ruff check --fix .
4545

4646
test:
47-
uv run pytest
47+
python -m pytest
4848

4949
precommit:
5050
pre-commit run --all-files

0 commit comments

Comments
 (0)