2016-08-02 20:19:52 +03:00
|
|
|
lint:
|
2023-02-02 17:43:38 +02:00
|
|
|
pylint --rcfile=./.pylintrc ./tests
|
2023-02-02 19:35:40 +02:00
|
|
|
pylint --rcfile=./.pylintrc ./platformio
|
2016-08-02 20:19:52 +03:00
|
|
|
|
|
|
|
|
isort:
|
2021-01-22 22:55:02 +02:00
|
|
|
isort ./platformio
|
|
|
|
|
isort ./tests
|
2016-08-03 23:38:20 +03:00
|
|
|
|
2019-12-22 23:45:12 +02:00
|
|
|
format:
|
2021-07-05 13:31:23 +03:00
|
|
|
black ./platformio
|
|
|
|
|
black ./tests
|
2016-08-03 23:38:20 +03:00
|
|
|
|
2025-02-08 19:27:58 +02:00
|
|
|
codespell:
|
2025-02-09 12:22:58 +02:00
|
|
|
codespell --skip "./build,./docs/_build" -L "AtLeast,TRE,ans,dout,homestate,ser"
|
2025-02-08 19:27:58 +02:00
|
|
|
|
2017-12-27 21:36:45 +02:00
|
|
|
test:
|
2024-08-29 15:58:12 +03:00
|
|
|
pytest --verbose --exitfirst -n 6 --dist=loadscope tests --ignore tests/test_examples.py
|
2017-12-27 21:36:45 +02:00
|
|
|
|
2025-02-08 19:27:58 +02:00
|
|
|
before-commit: codespell 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
|
|
|
|
2020-10-28 20:56:53 +02:00
|
|
|
pack:
|
|
|
|
|
python setup.py sdist
|
|
|
|
|
|
2019-07-10 16:52:04 +03:00
|
|
|
publish:
|
|
|
|
|
python setup.py sdist upload
|