Update makefile
This commit is contained in:
26
makefile
26
makefile
@@ -6,32 +6,30 @@ include .env
|
|||||||
help: ## Show this help
|
help: ## Show this help
|
||||||
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
||||||
.PHONY: env
|
|
||||||
env: ## Install pipenv
|
|
||||||
pipenv shell --python 3.9
|
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: env ## Make venv and install requirements
|
install: ## Make venv and install requirements
|
||||||
pipenv install --development
|
@pipenv lock
|
||||||
pipenv run pre-commit install
|
@pipenv install --dev
|
||||||
pre-commit autoupdate
|
@pipenv run pre-commit install
|
||||||
|
@pre-commit autoupdate
|
||||||
|
|
||||||
migrate: ## Make and run migrations
|
migrate: ## Make and run migrations
|
||||||
pipenv run python manage.py makemigrations
|
@pipenv run python manage.py makemigrations
|
||||||
pipenv run python manage.py migrate
|
@pipenv run python manage.py migrate
|
||||||
pipenv run python manage.py collectstatic --noinput
|
@pipenv run python manage.py collectstatic --noinput
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: ## Run tests
|
test: ## Run tests
|
||||||
pipenv run skjold -v audit Pipfile.lock
|
@pipenv run skjold -v audit Pipfile.lock
|
||||||
pipenv run python manage.py test --verbosity=0 --parallel --failfast
|
@pipenv run python manage.py test --verbosity=0 --parallel --failfast
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
run: ## Run the Django server
|
run: ## Run the Django server
|
||||||
pipenv run python manage.py runserver
|
@pipenv run python manage.py runserver
|
||||||
|
|
||||||
start: install migrate run ## Install requirements, apply migrations, then start development server
|
start: install migrate run ## Install requirements, apply migrations, then start development server
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check: ## Run checks on the packages
|
check: ## Run checks on the packages
|
||||||
pipenv run skjold -v audit Pipfile.lock
|
@pipenv run skjold -v audit Pipfile.lock
|
||||||
|
|||||||
Reference in New Issue
Block a user