forked from segmentio/analytics-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 695 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (20 loc) · 695 Bytes
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
PYTHON ?= python3
install:
$(PYTHON) -m pip install -e ".[dev]"
build:
rm -rf build
$(PYTHON) -m build
test:
$(PYTHON) -m unittest customerio/analytics/test/*.py -v
lint:
$(PYTHON) -m pylint --rcfile=.pylintrc --reports=y --exit-zero customerio/analytics
$(PYTHON) -m flake8 --max-complexity=10 --statistics --exit-zero customerio/analytics
lint-ci:
$(PYTHON) -m pylint --rcfile=.pylintrc --exit-zero --fail-on=E customerio/analytics
$(PYTHON) -m flake8 --max-complexity=10 --max-line-length=100 --statistics customerio/analytics
clean:
rm -rf MANIFEST build dist customerio.egg-info
clean-venv:
rm -rf .venv
mise deps
.PHONY: install build test lint lint-ci clean clean-venv