-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 794 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (27 loc) · 794 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
29
30
31
32
33
34
35
36
37
38
39
MAKEFLAGS += --always-make
all: build install test
clean: build-clean test-clean
build: build-clean
xpip-build --debug setup --all
build-clean:
xpip-build --debug setup --clean
upload:
xpip-upload --config-file .pypirc dist/*
install:
pip3 install --force-reinstall --no-deps dist/*.whl
uninstall:
pip3 uninstall -y cloudflare-radar
reinstall: uninstall install
pylint:
pylint $$(git ls-files cloudflare_radar/*.py test/*.py example/*.py)
flake8:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
pytest:
pytest
pytest-clean:
rm -rf .pytest_cache
prepare-test:
pip3 install --upgrade pylint flake8 pytest
test: prepare-test pylint flake8 pytest
test-clean: pytest-clean