forked from v3io/dockerregistrypusher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 979 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
VENV_PYTHON = ./venv/bin/python
.PHONY: all
all: venv lint
@echo Done.
.PHONY: lint
lint: flake8 fmt-check
.PHONY: flake8
flake8:
@echo "Running flake8 lint..."
$(VENV_PYTHON) -m flake8 .
.PHONY: fmt
fmt:
@echo "Running black fmt..."
$(VENV_PYTHON) -m black --skip-string-normalization .
.PHONY: fmt-check
fmt-check:
@echo "Running black fmt check..."
$(VENV_PYTHON) -m black --skip-string-normalization --check --diff .
#.PHONY: test
#test: test-unit test-integ
# @echo Finished running Tests
#
#.PHONY: test-unit
#test-unit: venv
# $(VENV_PYTHON) -m nose tests/unit
#
#.PHONY: test-integ
#test-integ: venv
# $(VENV_PYTHON) -m nose tests/integration/cases/
.PHONY: install
install: venv
@echo Installed
.PHONY: install-ci
install-ci: install-venv install
.PHONY: venv
venv:
python ./install --dev
$(VENV_PYTHON) -m pip install -e ./tools/flake8_plugin
.PHONY: install-venv
install-venv:
python -m pip install --upgrade pip
python -m pip install virtualenv