forked from seomoz/qless-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 813 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
all: test
.PHONY: clean
clean:
# Remove the build
rm -rf build dist
# And all of our pyc files
find . -name '*.pyc' -delete
# And lastly, .coverage files
find . -name .coverage -delete
.PHONY: reqless-core
reqless-core:
# Ensure reqless-core is built
make -C reqless/reqless-core/
cp reqless/reqless-core/reqless.lua reqless/lua/
cp reqless/reqless-core/reqless-lib.lua reqless/lua/
.PHONY: test-with-coverage
test-with-coverage: reqless-core
coverage run -m pytest -s
coverage report | tee .meta/coverage/report.txt
coverage-badge -f -o .meta/coverage/badge.svg
requirements:
pip freeze | grep -v -e reqless > requirements.txt
.PHONY: test
test:
pytest
# style the code according to accepted standards for the repo
.PHONY: style
style:
pre-commit run --all-files -c .pre-commit-config.yaml