-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
45 lines (29 loc) · 929 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
37
38
39
40
41
42
43
44
45
.PHONY: black black-check flake8 format have-poetry install install-dev isort isort-check lint mypy pylint style tests
black:
poetry run black raiden_synapse_modules
black-check:
poetry run black --check --diff raiden_synapse_modules
flake8:
poetry run flake8 raiden_synapse_modules
isort:
poetry run isort raiden_synapse_modules
isort-check:
poetry run isort --diff --check-only raiden_synapse_modules
pylint:
poetry run pylint raiden_synapse_modules
tests:
poetry run pytest --cov=raiden_synapse_modules
mypy:
poetry run mypy raiden_synapse_modules tests
have-poetry:
@command -v poetry > /dev/null 2>&1 || (echo "poetry is required. Installing." && python3 -m pip install --user poetry)
install: have-poetry
poetry install --no-dev
install-dev: have-poetry
poetry install
publish:
poetry publish --build
format: style
lint: mypy flake8 pylint black-check isort-check
style: isort black
test: tests