mirror of
https://github.com/platformio/platformio-core.git
synced 2025-06-25 01:21:53 +02:00
42 lines
813 B
Makefile
42 lines
813 B
Makefile
lint:
|
|
pylint --rcfile=./.pylintrc ./tests
|
|
pylint --rcfile=./.pylintrc ./platformio
|
|
|
|
isort:
|
|
isort ./platformio
|
|
isort ./tests
|
|
|
|
format:
|
|
black ./platformio
|
|
black ./tests
|
|
|
|
codespell:
|
|
codespell --skip "./build,./docs/_build" -L "AtLeast,TRE,ans,dout,homestate,ser"
|
|
|
|
test:
|
|
pytest --verbose --exitfirst -n 6 --dist=loadscope tests --ignore tests/test_examples.py
|
|
|
|
before-commit: codespell isort format lint
|
|
|
|
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
|
|
rm -f .coverage
|
|
|
|
profile:
|
|
# Usage $ > make PIOARGS="boards" profile
|
|
python -m cProfile -o .tox/.tmp/cprofile.prof -m platformio ${PIOARGS}
|
|
snakeviz .tox/.tmp/cprofile.prof
|
|
|
|
pack:
|
|
python setup.py sdist
|
|
|
|
publish:
|
|
python setup.py sdist upload
|