Files
platformio-core/Makefile

36 lines
763 B
Makefile
Raw Normal View History

2016-08-02 20:19:52 +03:00
lint:
2020-08-17 12:56:57 +03:00
pylint -j 6 --rcfile=./.pylintrc ./platformio ./tests
pylint -j 6 --rcfile=./.pylintrc ./tests
2016-08-02 20:19:52 +03:00
isort:
isort -rc ./platformio
2016-08-03 23:38:20 +03:00
isort -rc ./tests
format:
black --target-version py27 ./platformio
black --target-version py27 ./tests
2016-08-03 23:38:20 +03:00
2017-12-27 21:36:45 +02:00
test:
py.test --verbose --capture=no --exitfirst -n 6 --dist=loadscope tests --ignore tests/test_examples.py
2017-12-27 21:36:45 +02:00
2020-04-19 19:26:56 +03:00
before-commit: isort format lint
2016-08-02 20:19:52 +03:00
2016-08-03 22:01:11 +03:00
clean-docs:
rm -rf docs/_build
clean: clean-docs
find . -name \*.pyc -delete
find . -name __pycache__ -delete
rm -rf .cache
rm -rf build
rm -rf htmlcov
2019-07-04 19:02:13 +03:00
rm -f .coverage
profile:
# Usage $ > make PIOARGS="boards" profile
2020-08-14 16:39:15 +03:00
python -m cProfile -o .tox/.tmp/cprofile.prof -m platformio ${PIOARGS}
2019-07-04 19:02:13 +03:00
snakeviz .tox/.tmp/cprofile.prof
2019-07-10 16:52:04 +03:00
publish:
python setup.py sdist upload