-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (18 loc) · 773 Bytes
/
Makefile
File metadata and controls
27 lines (18 loc) · 773 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
SHELL := /bin/bash
.DEFAULT_GOAL := help
.PHONY: install check pylint pyright style black isort help
install: ## Install all dependencies
pip install -r requirements.txt
check: pylint pyright ## Run pylint and pyright
pylint: ## Check code smells with pylint
python -m pylint --exit-zero ./
pyright: ## Check type annotations
python -m pyright
style: black isort ## Run black and isort
black: ## Auto-format python code using black
python -m black ./
isort: ## Auto-format python code using isort
python -m isort ./
help: # Run `make help` to get help on the make commands
@echo "\033[36mAvailable commands:\033[0m"
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'