-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmakefile
73 lines (53 loc) · 1.13 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# Development makefile
#
#
# authors: [email protected], [email protected]
# created: 2021-06-22 11:49:13 CEST
#
which=recoco # default package for linting
SETTINGS=recoco.settings.development
# docker things
DOCKER-RUN = docker compose run -e TERM --rm --entrypoint=""
all:
echo "what do you want?"
test:
pytest
.PHONY: tags
tags:
@ctags --exclude=*.js --exclude=.venv --exclude=*.css -R ./recoco/
@find ./recoco -name \*.py | etags --language=python -
nice:
pre-commit run --all-files
lint:
pylint --django-settings-module=$(SETTINGS) $(which)
coverage:
pytest --cov
coverage html
clean:
rm -f tags TAGS
find . -name \*.pyc -delete
find . -name __pycache__ -delete
rm -rf ./static
rm -rf ./htmlcov .coverage
rm -rf .pytest_cache
rm -rf ./recoco.egg-info
deploy:
fab deploy
migrations:
./manage.py makemigrations
migrate:
./manage.py migrate
safe: nice
semgrep --config=p/ci recoco
runserver:
@python manage.py runserver 0.0.0.0:8000
runworker:
@celery -A recoco worker -l info --concurrency=1
build:
docker compose build
up:
docker compose up
sh:
$(DOCKER-RUN) server bash
# eof