-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (32 loc) · 1.06 KB
/
Makefile
File metadata and controls
40 lines (32 loc) · 1.06 KB
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
.PHONY: docs test unittest resource
PYTHON := $(shell which python)
PROJ_DIR := .
DOC_DIR := ${PROJ_DIR}/docs
BUILD_DIR := ${PROJ_DIR}/build
DIST_DIR := ${PROJ_DIR}/dist
TEST_DIR := ${PROJ_DIR}/test
TESTFILE_DIR := ${TEST_DIR}/testfile
SRC_DIR := ${PROJ_DIR}/lightrft
RANGE_DIR ?= .
RANGE_TEST_DIR := ${TEST_DIR}/${RANGE_DIR}
RANGE_SRC_DIR := ${SRC_DIR}/${RANGE_DIR}
COV_TYPES ?= xml term-missing
package:
$(PYTHON) -m build --sdist --wheel --outdir ${DIST_DIR}
clean:
rm -rf ${DIST_DIR} ${BUILD_DIR} *.egg-info
docs:
$(MAKE) -C "${DOC_DIR}" html
docs-live:
$(MAKE) -C "${DOC_DIR}" live
black:
black --line-length=120 "${SRC_DIR}"
yapf:
yapf --in-place --recursive -p --verbose --style .style.yapf ${SRC_DIR}
flake8:
flake8 --ignore=F401,F403,F405,W504,W503,E203,E125,E126 --max-line-length=120 "${SRC_DIR}"
pylint:
pylint --rcfile=.pylintrc --disable=C0114,C0415,W0212,W0235,W0238,W0621,C0103,R1735,C2801,E0402,C0412,W0719,R1728,W1514,W0718,W0105,W0707,C0209,W0703,W1203 "${SRC_DIR}"
#format: black
format: yapf
fcheck: flake8