Skip to content

Commit

Permalink
revert: move poetry plugin installation back to install phase
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinying committed Aug 3, 2024
1 parent db5c667 commit b2dc9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PROJECT_NAME ?= modpoll
.PHONY: install
install: ## Install the poetry environment and install the pre-commit hooks
@echo "πŸš€ Creating virtual environment using pyenv and poetry"
@poetry self add poetry-plugin-export
@poetry install
@poetry run pre-commit install --allow-missing-config
@poetry shell
Expand All @@ -12,7 +13,6 @@ check: ## Run code quality tools.
@echo "πŸš€ Checking Poetry lock file consistency with 'pyproject.toml': Running poetry check --lock"
@poetry check --lock
@echo "πŸš€ Exporting 'requirements.txt' file: Running poetry export"
@poetry self add poetry-plugin-export
@poetry export -f requirements.txt -o requirements.txt --without-hashes
@echo "πŸš€ Linting code: Running pre-commit"
@poetry run pre-commit run -a
Expand Down

0 comments on commit b2dc9f4

Please sign in to comment.