-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
69 lines (57 loc) · 1.2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.PHONY: lint
lint:
$(MAKE) --keep-going pylint flake8 pydocstyle mypy black-check isort-check
.PHONY: pylint
pylint:
@echo
@echo "Linting with pylint"
@poetry run pylint zscroll $(shell pwd)
# pycodestyle and pyflakes
.PHONY: flake8
flake8:
@echo
@echo "Linting with flake8 (includes pycodestyle, mccabe, and pyflakes)"
@poetry run flake8 zscroll .
# TODO does nothing
.PHONY: pydocstyle
pydocstyle:
@echo
@echo "Linting with pydocstyle"
@poetry run pydocstyle zscroll .
.PHONY: mypy
mypy:
@echo
@echo "Linting with mypy"
@poetry run mypy zscroll .
.PHONY: black-check
black-check:
@echo
@echo "Checking formatting with black"
@poetry run black --check zscroll .
.PHONY: black-format
black-format:
@echo
@echo "Fixing formatting with black"
@poetry run black zscroll .
.PHONY: isort-check
isort-check:
@echo
@echo "Checking formatting with isort"
@poetry run isort --check zscroll .
.PHONY: isort-format
isort-format:
@echo
@echo "Fixing formatting with isort"
@poetry run isort zscroll .
.PHONY: format
format:
@$(MAKE) isort-format black-format
.PHONY: test
test:
poetry run pytest -s -vv
.PHONY: test-cov
test-cov:
poetry run pytest -s -vv --cov=zscroll
.PHONY: deps
deps:
poetry install