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
|
.PHONY: format lint f tests cov htmlcov pep8 pylint docs dev-deps test-deps publish coveralls
source_dirs = radon
isort = isort -rc $(source_dirs)
black = black --line-length 79 --skip-string-normalization \
--target-version py27 $(source_dirs)
flake8 = flake8 $(source_dirs)
format:
$(isort)
$(black)
lint:
$(flake8)
f: format lint
tests:
python radon/tests/run.py
cov:
coverage erase && coverage run --branch --include "radon/*" --omit "radon/__init__.py,radon/cli.py,radon/tests/*" radon/tests/run.py
coverage report -m
htmlcov: cov
coverage html
pep8:
pep8 radon --exclude "radon/tests" --ignore "E731"
pylint:
pylint --rcfile pylintrc radon
docs:
cd docs && make html
test-deps:
pip install -r test_requirements.txt
publish:
rm -rf dist/*
python setup.py sdist bdist_wheel
twine upload dist/*
python setup.py develop
coveralls: test-deps cov
coveralls
|