forked from raiden-network/raiden-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (33 loc) · 1.04 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
.PHONY: all compile_contracts verify_contracts install install-dev lint isort black autopep8 format mypy clean release update_gas_costs
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 -r requirements-dev.txt
pip install -e .
ISORT_PARAMS = --ignore-whitespace --settings-path ./ --recursive raiden_contracts/
BLACK_PARAMS = --line-length 99 raiden_contracts/
lint:
black --check --diff $(BLACK_PARAMS)
flake8 raiden_contracts/
pylint raiden_contracts/
mypy raiden_contracts
isort $(ISORT_PARAMS) --check-only
isort:
isort $(ISORT_PARAMS)
black:
black $(BLACK_PARAMS)
autopep8:
autopep8 --in-place --recursive raiden_contracts/
format: autopep8 isort black
clean:
rm -rf build/ *egg-info/ dist .eggs
release: clean verify_contracts
python setup.py sdist bdist_wheel upload