Skip to content

Commit fb6a476

Browse files
committed
use --all-extras for all uv commands
1 parent dd05808 commit fb6a476

File tree

3 files changed

+693
-14
lines changed

3 files changed

+693
-14
lines changed

Makefile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COMPOSE_PROJECT_NAME ?= flagsmith-common
99

1010
.PHONY: install-packages
1111
install-packages: ## Install all required packages
12-
uv sync $(opts)
12+
uv sync $(or $(opts),'--all-extras')
1313

1414
.PHONY: install-pre-commit ## Install pre-commit hooks
1515
install-pre-commit:
@@ -24,7 +24,7 @@ install: install-packages install-pre-commit ensure-dotenv ## Ensure the environ
2424

2525
.PHONY: lint
2626
lint: ## Run linters
27-
uv run pre-commit run --all-files
27+
uv run --all-extras pre-commit run --all-files
2828

2929
.PHONY: docker-up
3030
docker-up: ## Start Docker containers
@@ -37,27 +37,26 @@ docker-down: ## Stop Docker containers
3737

3838
.PHONY: test
3939
test: docker-up ## Run all tests
40-
uv run pytest $(opts)
40+
uv run --all-extras pytest $(opts)
4141

4242
.PHONY: typecheck
4343
typecheck: ## Run mypy
44-
uv run mypy src tests
45-
44+
uv run --all-extras mypy src tests
4645
.PHONY: django-make-migrations
4746
django-make-migrations: ## Create new migrations based on the changes detected to your models
48-
uv run python manage.py waitfordb
49-
uv run python manage.py makemigrations $(opts)
47+
uv run --all-extras python manage.py waitfordb
48+
uv run --all-extras python manage.py makemigrations $(opts)
5049

5150
.PHONY: django-squash-migrations
5251
django-squash-migrations: ## Squash migrations for apps
53-
uv run python manage.py waitfordb
54-
uv run python manage.py squashmigrations $(opts)
52+
uv run --all-extras python manage.py waitfordb
53+
uv run --all-extras python manage.py squashmigrations $(opts)
5554

5655
.PHONY: django-migrate
5756
django-migrate: ## Apply migrations to the database
58-
uv run python manage.py waitfordb
59-
uv run python manage.py migrate
60-
uv run python manage.py createcachetable
57+
uv run --all-extras python manage.py waitfordb
58+
uv run --all-extras python manage.py migrate
59+
uv run --all-extras python manage.py createcachetable
6160

6261
help:
6362
@echo "Usage: make [target]"

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ flagsmith = "common.core.main:main"
6262
[project.entry-points.pytest11]
6363
flagsmith-test-tools = "common.test_tools.plugin"
6464

65-
[tool.dependency-groups]
65+
[dependency-groups]
6666
dev = [
67-
".[common-core,task-processor,test-tools]",
6867
"dj-database-url (>=2.3.0, <3.0.0)",
6968
"django-stubs (>=5.1.3, <6.0.0)",
7069
"djangorestframework-stubs (>=3.15.3, <4.0.0)",

0 commit comments

Comments
 (0)