generated from Templates/Docker_Image
✅ Ready to clone and code.
This commit is contained in:
committed by
github-actions[bot]
parent
44b7f644f8
commit
0b1384279d
12
Makefile
12
Makefile
@@ -17,16 +17,16 @@ 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 ai_test/
|
||||
$(ENV_PREFIX)black -l 79 ai_test/
|
||||
$(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 ai_test/
|
||||
$(ENV_PREFIX)black -l 79 --check ai_test/
|
||||
$(ENV_PREFIX)black -l 79 --check tests/
|
||||
$(ENV_PREFIX)mypy --ignore-missing-imports project_name/
|
||||
$(ENV_PREFIX)mypy --ignore-missing-imports ai_test/
|
||||
|
||||
.PHONY: release
|
||||
release: issetup ## Create a new tag for release.
|
||||
@@ -34,7 +34,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 ai_test:$(cat ai_test/VERSION) -f Containerfile .
|
||||
|
||||
# This project has been generated from rochacbruno/python-project-template
|
||||
# __author__ = 'rochacbruno'
|
||||
|
||||
Reference in New Issue
Block a user