|
9 | 9 | rm -rf .mypy_cache .pytest_cache .ruff_cache build dist htmlcov .coverage
|
10 | 10 |
|
11 | 11 | install-dev:
|
12 |
| - poetry install --all-extras |
13 |
| - poetry run pre-commit install |
14 |
| - poetry run playwright install |
| 12 | + uv sync --group dev --all-extras |
| 13 | + uv run pre-commit install |
| 14 | + uv run playwright install |
15 | 15 |
|
16 | 16 | build:
|
17 |
| - poetry build --no-interaction -vv |
| 17 | + uv build -v |
18 | 18 |
|
19 | 19 | # APIFY_PYPI_TOKEN_CRAWLEE is expected to be set in the environment
|
20 | 20 | publish-to-pypi:
|
21 |
| - poetry config pypi-token.pypi "${APIFY_PYPI_TOKEN_CRAWLEE}" |
22 |
| - poetry publish --no-interaction -vv |
| 21 | + uv publish -v --token "${APIFY_PYPI_TOKEN_CRAWLEE}" |
23 | 22 |
|
24 | 23 | lint:
|
25 |
| - poetry run ruff format --check $(DIRS_WITH_CODE) |
26 |
| - poetry run ruff check $(DIRS_WITH_CODE) |
| 24 | + uv run ruff format --check $(DIRS_WITH_CODE) |
| 25 | + uv run ruff check $(DIRS_WITH_CODE) |
27 | 26 |
|
28 | 27 | type-check:
|
29 |
| - poetry run mypy $(DIRS_WITH_CODE) |
| 28 | + uv run mypy $(DIRS_WITH_CODE) |
30 | 29 |
|
31 | 30 | unit-tests:
|
32 |
| - poetry run pytest --numprocesses=auto --verbose --cov=src/crawlee tests/unit |
| 31 | + uv run pytest --numprocesses=auto --verbose --cov=src/crawlee tests/unit |
33 | 32 |
|
34 | 33 | unit-tests-cov:
|
35 |
| - poetry run pytest --numprocesses=auto --verbose --cov=src/crawlee --cov-report=html tests/unit |
| 34 | + uv run pytest --numprocesses=auto --verbose --cov=src/crawlee --cov-report=html tests/unit |
36 | 35 |
|
37 | 36 | integration-tests:
|
38 |
| - poetry run pytest --numprocesses=$(INTEGRATION_TESTS_CONCURRENCY) tests/integration |
| 37 | + uv run pytest --numprocesses=$(INTEGRATION_TESTS_CONCURRENCY) tests/integration |
39 | 38 |
|
40 | 39 | format:
|
41 |
| - poetry run ruff check --fix $(DIRS_WITH_CODE) |
42 |
| - poetry run ruff format $(DIRS_WITH_CODE) |
| 40 | + uv run ruff check --fix $(DIRS_WITH_CODE) |
| 41 | + uv run ruff format $(DIRS_WITH_CODE) |
43 | 42 |
|
44 | 43 | # The check-code target runs a series of checks equivalent to those performed by pre-commit hooks
|
45 | 44 | # and the run_checks.yaml GitHub Actions workflow.
|
|
0 commit comments