Skip to content

Commit 1fbf77d

Browse files
committed
experimental uv
1 parent 56dcb71 commit 1fbf77d

File tree

5 files changed

+2954
-3863
lines changed

5 files changed

+2954
-3863
lines changed

Makefile

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,36 @@ clean:
99
rm -rf .mypy_cache .pytest_cache .ruff_cache build dist htmlcov .coverage
1010

1111
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
1515

1616
build:
17-
poetry build --no-interaction -vv
17+
uv build -v
1818

1919
# APIFY_PYPI_TOKEN_CRAWLEE is expected to be set in the environment
2020
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}"
2322

2423
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)
2726

2827
type-check:
29-
poetry run mypy $(DIRS_WITH_CODE)
28+
uv run mypy $(DIRS_WITH_CODE)
3029

3130
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
3332

3433
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
3635

3736
integration-tests:
38-
poetry run pytest --numprocesses=$(INTEGRATION_TESTS_CONCURRENCY) tests/integration
37+
uv run pytest --numprocesses=$(INTEGRATION_TESTS_CONCURRENCY) tests/integration
3938

4039
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)
4342

4443
# The check-code target runs a series of checks equivalent to those performed by pre-commit hooks
4544
# and the run_checks.yaml GitHub Actions workflow.

0 commit comments

Comments
 (0)