-
-
Notifications
You must be signed in to change notification settings - Fork 117
/
Makefile
57 lines (43 loc) · 1.23 KB
/
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
49
50
51
52
53
54
55
56
57
.PHONY: dev test test-core comply-fix docs clean dist dist-upload docker docker-push
dev:
docker compose up -d
docker compose exec cement pdm install
docker compose exec cement-py38 pdm install
docker compose exec cement-py39 pdm install
docker compose exec cement-py310 pdm install
docker compose exec cement-py311 pdm install
docker compose exec cement-py312 pdm install
docker compose exec cement /bin/bash
test: comply
pdm run pytest --cov=cement tests
test-core: comply
pdm run pytest --cov=cement.core tests/core
virtualenv:
pdm venv create
pdm install
@echo
@echo "VirtualENV Setup Complete. Now run: eval $(pdm venv activate)"
@echo
comply: comply-ruff comply-mypy
comply-ruff:
pdm run ruff check cement/ tests/
comply-ruff-fix:
pdm run ruff check --fix cement/ tests/
comply-mypy:
pdm run mypy
docs:
cd docs; pdm run sphinx-build ./source ./build; cd ..
@echo
@echo DOC: "file://"$$(echo `pwd`/docs/build/html/index.html)
@echo
clean:
find . -name '*.py[co]' -delete
rm -rf doc/build
dist:
pdm build
docker:
docker build -t datafolklabs/cement:latest .
docker-push:
docker push datafolklabs/cement:latest
remove-merged-branches:
git branch --merged | grep -v -e 'main\|stable/*\|dev/*' | xargs git branch -d