mirror of
https://github.com/wassname/kair_algorithms_draft.git
synced 2026-08-29 11:20:40 +08:00
* Modify Makefile * Modify .travis.yml * Replace make command on .travis.yml
22 lines
539 B
Makefile
22 lines
539 B
Makefile
test:
|
|
env PYTHONPATH=./scripts pytest --flake8 # --cov=algorithms
|
|
|
|
format:
|
|
isort -y
|
|
python3.6 -m black -t py27 .
|
|
|
|
dev:
|
|
pip install -r scripts/requirements-dev.txt
|
|
python3.6 -m pip install black # required python3.6 & python3-pip
|
|
pre-commit install
|
|
|
|
dep:
|
|
pip install -r scripts/requirements.txt
|
|
|
|
py36:
|
|
# install python3.6 for black (only ubuntu)
|
|
pip install -r scripts/requirements-dev.txt
|
|
sudo add-apt-repository -y ppa:deadsnakes/ppa
|
|
sudo apt-get update
|
|
sudo apt-get install -y python3.6
|
|
sudo apt-get install -y python3-pip
|