Skip to content

Commit 900c2b3

Browse files
committed
Refactor the Makefile
1 parent 883d255 commit 900c2b3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ matrix:
1212
install:
1313
- pip install flake8 nose==1.3.0 flask flask_restful flask_restplus injector flask_sqlalchemy eventlet typing mypy typed_ast
1414
script:
15-
- make test
15+
- make ci

Makefile

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
SOURCES := flask_injector.py flask_injector_tests.py
22

3+
.PHONY: ci
4+
ci: test lint
5+
36
.PHONY: test
4-
test: mypy
7+
test:
58
nosetests -v $(SOURCES)
69
PYTHONPATH=.:$(PYTHONPATH) python example.py
10+
11+
.PHONY: lint
12+
lint: flake8 mypy
13+
14+
.PHONY: flake8
15+
flake8:
716
flake8 --max-line-length=110 $(SOURCES)
817

918
.PHONY: mypy

0 commit comments

Comments
 (0)