-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (46 loc) · 1.72 KB
/
Makefile
File metadata and controls
68 lines (46 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
SHELL:=/bin/sh
.PHONY: all
app_name="cloudsnake"
help: ## this help
@awk 'BEGIN {FS = ":.*?## "; printf "Usage:\n make \033[36m<target> \033[0m\n\nTargets:\n"} /^[a-zA-Z0-9_-]+:.*?## / {gsub("\\\\n",sprintf("\n%22c",""), $$2);printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
run: ## Execute the cli locally using poetry
poetry run python3 src/cloudsnake/__main__.py
install: ## Install dependencies
poetry install
build: ## Build project using poetry
poetry build
run-coverage: ## Run pytest with coverage
poetry run pytest --cov=cloudsnake tests/
publish: ## Publish package to pypi.org
poetry publish --build
publish-to-test: ## Publish to test pypip
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish --build -r testpypi
clean: ## Clean build files
rm -rvf dist/
doctoc: ## Create table of contents with doctoc
doctoc .
pre-commit-install: ## Install pre-commit
pre-commit install
pre-commit-uninstall: ## Uninstall pre-commit
pre-commit uninstall
run-pre-commit: ## Run pre-commit locally
pre-commit run -a
pipx-local-install: ## Install the package locally using pipx
pipx install . --force
pipx-upgrade: ## Upgrade package
pipx upgrade ${app_name}
pipx-uninstall: ## Uninstall package
pipx uninstall ${app_name}
init-git-cliff: # Init git cliff
git-cliff --init
generate-changelog: ## Generate changelog
git cliff -o CHANGELOG.md
run-tests: ## Run pytest using poetry
poetry run pytest -v -s
poetry-cache-clear: ## Clear poetry cache
poetry cache clear pypi --all
export-requirements: ## Export requirements.txt using poetry
poetry export -f requirements.txt --output requirements.txt
init-gitmoji: ## Init gitmoji (sudo npm i -g gitmoji-cli)
gitmoji --init