mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-04-03 16:34:22 +03:00
Add minimal lockfile to satisfy bind
This commit is contained in:
parent
d1b92548a6
commit
4d070110ff
|
@ -9,7 +9,7 @@ set -e
|
|||
|
||||
finish() {
|
||||
# Your cleanup code here
|
||||
docker compose -f docker-compose.local.yml down
|
||||
docker compose -f docker-compose.local.yml down --remove-orphans
|
||||
docker volume rm my_awesome_project_my_awesome_project_local_postgres_data
|
||||
|
||||
}
|
||||
|
@ -19,6 +19,8 @@ trap finish EXIT
|
|||
mkdir -p .cache/docker
|
||||
cd .cache/docker
|
||||
|
||||
sudo rm -rf my_awesome_project
|
||||
|
||||
# create the project using the default settings in cookiecutter.json
|
||||
uv run cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y "$@"
|
||||
cd my_awesome_project
|
||||
|
@ -29,6 +31,8 @@ docker compose -f docker-compose.local.yml build
|
|||
# run the project's type checks
|
||||
docker compose -f docker-compose.local.yml run django mypy my_awesome_project
|
||||
|
||||
docker compose -f docker-compose.local.yml run --volume $PWD:/app django uv lock
|
||||
|
||||
# run the project's tests
|
||||
docker compose -f docker-compose.local.yml run django pytest
|
||||
|
||||
|
|
|
@ -1,7 +1,2 @@
|
|||
version = 1
|
||||
requires-python = ">=3.12"
|
||||
|
||||
[[package]]
|
||||
name = ""
|
||||
version = "0.1.0"
|
||||
source = { virtual = "." }
|
||||
requires-python = "==3.12.*"
|
||||
|
|
Loading…
Reference in New Issue
Block a user