Makefile 794 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .PHONY: install
  2. install:
  3. poetry install
  4. .PHONY: install-pre-commit
  5. install-pre-commit:
  6. poetry run pre-commit uninstall; poetry run pre-commit install
  7. .PHONY: lint
  8. lint:
  9. poetry run pre-commit run --all-files
  10. .PHONY: migrations
  11. migrations:
  12. poetry run python3 -m backend.manage makemigrations
  13. .PHONY: migrate
  14. migrate:
  15. poetry run python3 -m backend.manage migrate
  16. .PHONY: run-server
  17. run-server:
  18. poetry run python3 -m backend.manage runserver
  19. .PHONY: shell
  20. shell:
  21. poetry run python -m backend.manage shell
  22. .PHONY: superuser
  23. superuser:
  24. poetry run python3 -m backend.manage createsuperuser
  25. .PHONY: update
  26. update: install migrate install-pre-commit ;
  27. .PHONY: local-settings
  28. local-settings:
  29. mkdir -p local; cp ./backend/UnTube/settings/templates/settings.dev.py ./local/settings.dev.py