forked from alephdata/memorious
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (41 loc) · 1.4 KB
/
Makefile
File metadata and controls
58 lines (41 loc) · 1.4 KB
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
DOCKER=docker run -v $(PWD)/dist:/memorious/dist -ti ghcr.io/dataresearchcenter/memorious
COMPOSE=docker compose -f docker-compose.dev.yml
HTTPBIN := http://localhost:80
.PHONY: all clean build dev rebuild test services shell image
all: clean
install:
poetry install --with dev --all-extras
clean:
rm -rf dist build .eggs
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
build:
docker build -t ghcr.io/dataresearchcenter/memorious .
dev:
$(COMPOSE) build
$(COMPOSE) run shell
rebuild:
docker build --pull --no-cache -t ghcr.io/dataresearchcenter/memorious .
lint:
poetry run flake8 memorious --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 memorious --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
pre-commit:
poetry run pre-commit install
poetry run pre-commit run -a
typecheck:
poetry run mypy --strict memorious
test:
# Check if the command works
poetry run memorious --help
poetry run pytest -v --capture=sys --cov=memorious --cov-report lcov
services:
$(COMPOSE) up -d httpbin proxy
shell:
$(COMPOSE) run shell
image:
docker build -t ghcr.io/dataresearchcenter/memorious .
documentation:
mkdocs build
aws --profile nbg1 --endpoint-url https://s3.investigativedata.org s3 sync ./site s3://docs.investigraph.dev/lib/memorious