Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (33 sloc) 774 Bytes
init:
ifeq ($(TRAVIS), true)
pip install -r reqs/travis-requirements.txt
pip install pandas==${PANDAS_VERSION}
pip install numpy==${NUMPY_VERSION}
pip list --local
else
pip install -r reqs/dev-requirements.txt
pre-commit install
endif
test:
py.test lifelines/ -rfs --cov=lifelines --block=False --cov-report term-missing
lint:
ifeq ($(TRAVIS_PYTHON_VERSION), 2.7)
echo "Skip linting for Python2.7"
else
make black
prospector --output-format grouped
endif
black:
ifeq ($(TRAVIS_PYTHON_VERSION), 2.7)
echo "Skip linting for Python2.7"
else
black lifelines/ -l 120 --fast
endif
check_format:
ifeq ($(TRAVIS_PYTHON_VERSION), 3.6)
black . --check --line-length 120
else
echo "Only check format on Python3.6"
endif
pre:
pre-commit run --all-files
You can’t perform that action at this time.