-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (28 loc) · 927 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
all: clean install test
install:
poetry install --with dev --all-extras
lint:
poetry run flake8 anystore --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 anystore --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 anystore
test:
poetry run pytest -v --capture=sys --cov=anystore --cov-report=lcov
build:
poetry run build
clean:
rm -fr build/
rm -fr dist/
rm -fr .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 {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
documentation:
mkdocs build
aws --endpoint-url https://s3.investigativedata.org s3 sync ./site s3://docs.investigraph.dev/lib/anystore