-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (25 loc) · 655 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
35
36
37
.PHONY: default install build lint type-check format format-check ci publish
FILE_NAME=remotecap.py
default: ci
install:
pip install -r requirements.txt
pip install -r requirements.build.txt
LINTER=flake8
# E501 = line too long
LINTER_ARGS=--ignore E501 $(FILE_NAME)
lint:
$(LINTER) $(LINTER_ARGS)
TYPE_CHECKER=mypy
TYPE_CHECKER_ARGS=$(FILE_NAME)
type-check:
$(TYPE_CHECKER) $(TYPE_CHECKER_ARGS)
FORMATTER=black
FORMATTER_ARGS= --line-length 120 $(FILE_NAME)
format:
$(FORMATTER) $(FORMATTER_ARGS)
format-check:
$(FORMATTER) --check $(FORMATTER_ARGS)
ci: lint type-check format-check
publish:
python setup.py sdist
twine upload dist/*