-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
44 lines (35 loc) · 1.13 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
44
help:
@echo Developer commands for Clientele
@echo
@grep -E '^[ .a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
@echo
install: ## Install requirements ready for development
poetry install
deploy-docs: ## Build and deploy the documentation
mkdocs build
mkdocs gh-deploy
release: ## Build a new version and release it
poetry build
poetry publish
mypy: ## Run a static syntax check
poetry run mypy .
format: ## Format the code correctly
poetry run ruff format .
poetry run ruff --fix .
clean: ## Clear any cache files and test files
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf .ruff_cache
rm -rf test_output
rm -rf site/
rm -rf dist/
rm -rf **/__pycache__
rm -rf **/*.pyc
test: ## Run tests
pytest -vvv
shell: ## Run an ipython shell
poetry run ipython
generate-test-clients: ## regenerate the test clients in the tests/ directory
poetry install
clientele generate -f example_openapi_specs/best.json -o tests/test_client/ --regen t
clientele generate -f example_openapi_specs/best.json -o tests/async_test_client/ --asyncio t --regen t