generated from Templates/Docker_Image
✅ Ready to clone and code.
This commit is contained in:
committed by
github-actions[bot]
parent
2410173af1
commit
d488434323
16
Makefile
16
Makefile
@@ -19,24 +19,24 @@ help: ## Show the help.
|
||||
|
||||
.PHONY: fmt
|
||||
fmt: issetup ## Format code using black & isort.
|
||||
$(ENV_PREFIX)isort project_name/
|
||||
$(ENV_PREFIX)black -l 79 project_name/
|
||||
$(ENV_PREFIX)isort n8n_ollama/
|
||||
$(ENV_PREFIX)black -l 79 n8n_ollama/
|
||||
$(ENV_PREFIX)black -l 79 tests/
|
||||
|
||||
.PHONY: lint
|
||||
lint: issetup ## Run pep8, black, mypy linters.
|
||||
$(ENV_PREFIX)flake8 project_name/
|
||||
$(ENV_PREFIX)black -l 79 --check project_name/
|
||||
$(ENV_PREFIX)flake8 n8n_ollama/
|
||||
$(ENV_PREFIX)black -l 79 --check n8n_ollama/
|
||||
$(ENV_PREFIX)black -l 79 --check tests/
|
||||
$(ENV_PREFIX)mypy --ignore-missing-imports project_name/
|
||||
$(ENV_PREFIX)mypy --ignore-missing-imports n8n_ollama/
|
||||
|
||||
.PHONY: release
|
||||
release: issetup ## Create a new tag for release.
|
||||
@echo "WARNING: This operation will create a version tag and push to gitea"
|
||||
@read -p "Version? (provide the next x.y.z semver) : " TAG
|
||||
@echo "$${TAG}" > project_name/VERSION
|
||||
@echo "$${TAG}" > n8n_ollama/VERSION
|
||||
@$(ENV_PREFIX)gitchangelog > HISTORY.md
|
||||
@git add project_name/VERSION HISTORY.md
|
||||
@git add n8n_ollama/VERSION HISTORY.md
|
||||
@git commit -m "release: version $${TAG} 🚀"
|
||||
@echo "creating git tag : $${TAG}"
|
||||
@git tag $${TAG}
|
||||
@@ -45,7 +45,7 @@ release: issetup ## Create a new tag for release.
|
||||
|
||||
.PHONY: build
|
||||
build: issetup ## Create a new tag for release.
|
||||
@docker build -t project_name:$(cat project_name/VERSION) -f Containerfile .
|
||||
@docker build -t n8n_ollama:$(cat n8n_ollama/VERSION) -f Containerfile .
|
||||
|
||||
# This project has been generated from rochacbruno/python-project-template
|
||||
# __author__ = 'rochacbruno'
|
||||
|
||||
Reference in New Issue
Block a user