-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (24 loc) · 799 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
setup:
python -m venv .venv && . .venv/bin/activate
poetry install
. .venv/bin/activate && pre-commit install --hook-type pre-commit --hook-type pre-push --hook-type commit-msg
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test:
rm -f .coverage
rm -f .coverage.*
clean: clean-pyc clean-test
mypy:
. .venv/bin/activate && mypy sumgraph tests
test: clean
. .venv/bin/activate && pytest tests --cov=sumgraph --cov-report=term-missing
test-prepush: clean
. .venv/bin/activate && pytest tests
pylint:
. .venv/bin/activate && pylint -j 0 sumgraph tests --reports=y
black:
. .venv/bin/activate && black sumgraph tests --check
check: mypy test pylint black