-
Notifications
You must be signed in to change notification settings - Fork 45
/
Makefile
56 lines (38 loc) · 1.09 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
.PHONY: all compile_contracts verify_contracts install install-dev lint isort black autopep8 format mypy clean release update_gas_costs dist upload-pypi
all: verify_contracts install
compile_contracts:
python setup.py compile_contracts
verify_contracts:
python setup.py verify_contracts
update_gas_costs:
pytest "raiden_contracts/tests/test_print_gas.py::test_print_gas" -s
install:
pip install -r requirements.txt
pip install -e .
install-dev:
pip install -U -r requirements-dev.txt
pip install -e .
LINT_FILES = raiden_contracts/ setup.py
ISORT_PARAMS = --ignore-whitespace --settings-path ./ raiden_contracts/
BLACK_PARAMS = raiden_contracts/
lint: mypy
black --check --diff $(BLACK_PARAMS)
flake8 $(LINT_FILES)
pylint $(LINT_FILES)
isort $(ISORT_PARAMS) --check-only
mypy:
mypy $(LINT_FILES)
isort:
isort $(ISORT_PARAMS)
black:
black $(BLACK_PARAMS)
format: isort black
clean:
rm -rf build/ *egg-info/ dist .eggs
release: clean verify_contracts
python setup.py sdist bdist_wheel upload
dist:
python setup.py sdist
python setup.py bdist_wheel
upload-pypi: dist
twine upload dist/*