generated from Templates/Docker_Image
feat: initial release, refs NOISSUE
This commit is contained in:
26
Makefile
26
Makefile
@@ -17,26 +17,34 @@ help: ## Show the help.
|
||||
|
||||
.PHONY: fmt
|
||||
fmt: issetup ## Format code using black & isort.
|
||||
$(ENV_PREFIX)isort ai_test/
|
||||
$(ENV_PREFIX)black -l 79 ai_test/
|
||||
$(ENV_PREFIX)isort ai-software-factory/
|
||||
$(ENV_PREFIX)black -l 79 ai-software-factory/
|
||||
$(ENV_PREFIX)black -l 79 tests/
|
||||
|
||||
.PHONY: test
|
||||
test: issetup ## Run tests with pytest.
|
||||
$(ENV_PREFIX)pytest ai-software-factory/tests/ -v --tb=short
|
||||
|
||||
.PHONY: test-cov
|
||||
test-cov: issetup ## Run tests with coverage report.
|
||||
$(ENV_PREFIX)pytest ai-software-factory/tests/ -v --tb=short --cov=ai-software-factory --cov-report=html --cov-report=term-missing
|
||||
|
||||
.PHONY: lint
|
||||
lint: issetup ## Run pep8, black, mypy linters.
|
||||
$(ENV_PREFIX)flake8 ai_test/
|
||||
$(ENV_PREFIX)black -l 79 --check ai_test/
|
||||
$(ENV_PREFIX)flake8 ai-software-factory/
|
||||
$(ENV_PREFIX)black -l 79 --check ai-software-factory/
|
||||
$(ENV_PREFIX)black -l 79 --check tests/
|
||||
$(ENV_PREFIX)mypy --ignore-missing-imports ai_test/
|
||||
$(ENV_PREFIX)mypy --ignore-missing-imports ai-software-factory/
|
||||
|
||||
.PHONY: release
|
||||
release: issetup ## Create a new tag for release.
|
||||
@./.gitea/conventional_commits/generate-version.sh
|
||||
|
||||
.PHONY: build
|
||||
build: issetup ## Create a new tag for release.
|
||||
@docker build -t ai_test:$(cat ai_test/VERSION) -f Containerfile .
|
||||
build: issetup ## Create a new tag for release.
|
||||
@docker build -t ai-software-factory:$(cat ai-software-factory/VERSION) -f Containerfile .
|
||||
|
||||
# This project has been generated from rochacbruno/python-project-template
|
||||
# __author__ = 'rochacbruno'
|
||||
#igest__ = 'rochacbruno'
|
||||
# __repo__ = https://github.com/rochacbruno/python-project-template
|
||||
# __sponsor__ = https://github.com/sponsors/rochacbruno/
|
||||
# __sponsor__ = https://github.com/sponsors/rochacbruno/
|
||||
|
||||
Reference in New Issue
Block a user