-
Notifications
You must be signed in to change notification settings - Fork 54
/
Makefile
47 lines (33 loc) · 1.1 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
# Makefile for PaConvert
#
# GitHb: https://github.com/PaddlePaddle/PaConvert
# Author: Paddle Team https://github.com/PaddlePaddle
#
.PHONY: all
all : lint test
check_dirs := paconvert tests scripts
# # # # # # # # # # # # # # # Format Block # # # # # # # # # # # # # # #
format:
pre-commit run black
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # Install Block # # # # # # # # # # # # # # #
.PHONY: install
install:
pip install -r requirements.txt
pip install -r tests/requirements.txt
pre-commit install
# # # # # # # # # # # # # # # Lint Block # # # # # # # # # # # # # # #
.PHONY: lint
lint:
bash scripts/code_style_check.sh
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # Test Block # # # # # # # # # # # # # # #
.PHONY: test
test: unit-test
unit-test:
PYTHONPATH=. pytest tests
# # # # # # # # # # # # # # # Coverage Block # # # # # # # # # # # # # # #
.PHONY: coverage
coverage:
bash scripts/coverage_check.sh
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #