-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
43 lines (30 loc) · 1.19 KB
/
Makefile
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
.DEFAULT_GOAL := help
help: ## Shows this help message
@printf "\033[1m%s\033[36m %s\033[32m %s\033[0m \n\n" "Development environment for" "ludeeus/aiogithubapi" "";
@awk 'BEGIN {FS = ":.*##";} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m make %-25s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST);
@echo
requirements: install-poetry ## Install requirements
@poetry install --extras "deprecated-verify"
@poetry check
install: ## Install aiogithubapi
@poetry install --extras "deprecated-verify"
install-poetry:
@curl -sSL https://install.python-poetry.org | python3 -
build: ## Build the package
@poetry build
test: ## Run all tests
@poetry run pytest tests -rxf -x -v -l --cov=./ --cov-report=xml
lint: isort black ## Lint all files
coverage: ## Check the coverage of the package
@poetry run pytest tests -rxf -x -v -l --cov=./ --cov-report=xml > /dev/null
@poetry run coverage report --skip-covered
isort:
@poetry run isort aiogithubapi
isort-check:
@poetry run isort aiogithubapi --check-only
black:
@poetry run black --fast aiogithubapi
example:
@poetry run python example.py
black-check:
@poetry run black --check --fast aiogithubapi