chore: prepare project
This commit is contained in:
@@ -10,8 +10,6 @@ endif
|
||||
UV ?= uv
|
||||
RUFF ?= $(UV) run --active ruff
|
||||
TY ?= $(UV) run --active ty
|
||||
UNITTEST ?= $(UV) run --active -m unittest
|
||||
COVERAGE ?= $(UV) run --active coverage
|
||||
OPEN ?= xdg-open
|
||||
|
||||
# DOCS
|
||||
@@ -52,16 +50,6 @@ lint: ruff ruff-format-check ty ## lint project
|
||||
.PHONY: build
|
||||
build: docker-build ## build project
|
||||
|
||||
.PHONY: test
|
||||
test: unittest ## test project
|
||||
|
||||
.PHONY: test-%
|
||||
test-%: ## test project with specific test
|
||||
@$(MAKE) -s unittest-$*
|
||||
|
||||
.PHONY: coverage
|
||||
coverage: coverage-unittest coverage-xml coverage-report ## test project with coverage
|
||||
|
||||
# TOOLS
|
||||
|
||||
.PHONY: uv-sync
|
||||
@@ -92,31 +80,6 @@ ruff-format-check: .venv ## ruff format (check only)
|
||||
ty: .venv ## ty check
|
||||
@$(TY) check
|
||||
|
||||
.PHONY: unittest
|
||||
unittest: .venv ## unittest
|
||||
@$(UNITTEST) -v
|
||||
|
||||
.PHONY: unittest-%
|
||||
unittest-%: .venv ## unittest -k [filter]
|
||||
@$(UNITTEST) -v -k $*
|
||||
|
||||
.PHONY: coverage-unittest
|
||||
coverage-unittest: .venv ## coverage run -m unittest
|
||||
@$(COVERAGE) run -m unittest -v
|
||||
|
||||
.PHONY: coverage-report
|
||||
coverage-report: .venv ## coverage report
|
||||
@$(COVERAGE) report
|
||||
|
||||
.PHONY: coverage-html
|
||||
coverage-html: .venv ## coverage html
|
||||
@$(COVERAGE) html
|
||||
@$(OPEN) htmlcov/index.html || true
|
||||
|
||||
.PHONY: coverage-xml
|
||||
coverage-xml: .venv ## coverage xml
|
||||
@$(COVERAGE) xml
|
||||
|
||||
.PHONY: release-%
|
||||
release-%: .venv ## release major/minor/patch
|
||||
$(UV) version --bump=$*
|
||||
|
||||
Reference in New Issue
Block a user