-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathMakefile
48 lines (31 loc) · 1023 Bytes
/
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
48
# SHELL ensures more consistent behavior between macOS and Linux.
SHELL=/bin/bash
test_reports := build
.PHONY: *
clean:
rm -rf build .mypy_cache .coverage
# Install the script locally.
install:
pip3 install -e .
# Install the script and the development dependencies.
dev-install:
pip3 install -r dev-requirements.txt
uninstall:
pip3 uninstall aws2wrap
# Run the unittests.w
test:
rm -rf $(test_reports) .coverage
mkdir -p $(test_reports)
python3 -m green --run-coverage --junit-report=$(test_reports)/pytests.xml aws2wrap
python3 -m coverage xml -o $(test_reports)/pycoverage.xml
python3 -m coverage html -d $(test_reports)/html
@echo "HTML code coverage report was generated in $(test_reports)/html"
@echo "Open it with:"
@echo " open $(test_reports)/html/index.html"
# Run pylint to help check that our code is sane.
pylint:
python3 -m pylint --errors-only setup.py aws2wrap
# Run mypy to check that our type annotation is correct.
mypy:
python3 -m mypy aws2wrap
checks: pylint mypy test