forked from appium/python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 786 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 786 Bytes
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
.PHONY: Commands for developers
.PHONY: check-all
check-all: ## Run all lint checks and unittest
@echo "[Notice] If you'd like to run commands with same env to CI, please run \`tox\`."
@bash ci.sh
.PHONY: check
check: check-lint check-format
.PHONY: check-lint
check-lint:
python -m ruff check .
.PHONY: check-format
check-format:
python -m ruff format --check .
.PHONY: fix
fix: fix-lint fix-format
.PHONY: fix-lint
fix-lint:
python -m ruff check --fix .
.PHONY: fix-format
fix-format:
python -m ruff format .
.PHONY: unittest
unittest: ## Run unittest
python -m pytest $(ARGS) test/unit/
.PHONY: help
help: ## Display this help screen
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'