-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
34 lines (28 loc) · 926 Bytes
/
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
all: help
help: ## Show this help
@echo -e "Specify a command. The choices are:\n"
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-18s\033[m %s\n", $$1, $$2}'
@echo ""
.PHONY: help
tags: ## Generate ctags for main codebase
ctags -f tags \
--recurse=yes \
--tag-relative=yes \
--fields=+l \
--kinds-python=-i \
--language-force=python \
papis_zotero
.PHONY: tags
flake8: ## Run flake8 checks
python -m flake8 papis_zotero tests
.PHONY: flake8
mypy: ## Run (strict) mypy checks
python -m mypy papis_zotero tests
.PHONY: mypy
pytest: ## Run pytest test and doctests
python -m pytest -rswx --cov=papis_zotero -v -s tests
.PHONY: pytest
ci-install: ## Run pip and install dependencies on CI
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e '.[develop]'
.PHONY: ci-install