A python library for accessing the BME280 combined humidity and pressure sensor from Bosch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 lines
895 B

  1. # https://tech.davis-hansson.com/p/make/
  2. SHELL := bash
  3. .ONESHELL:
  4. .SHELLFLAGS := -eux -o pipefail -c
  5. .DELETE_ON_ERROR:
  6. .SILENT:
  7. .DEFAULT_GOAL := all
  8. MAKEFLAGS += --warn-undefined-variables
  9. MAKEFLAGS += --no-builtin-rules
  10. .PHONY: all
  11. all: lint test ## Run lint and test (default goal)
  12. .PHONY: lint
  13. lint: ## Lint all source code
  14. poetry run yapf -q -r bme280
  15. poetry run pylint --ignore=snapshots bme280 tests
  16. .PHONY: test
  17. test: ## Run all tests
  18. poetry run pytest
  19. .PHONY: rebase-three-branch
  20. rebase-three-branch: ## Rebase the py3 branch with master contents
  21. git stash
  22. git checkout master
  23. git pull
  24. git checkout three
  25. git rebase -i origin/master
  26. git push --force-with-lease
  27. git checkout master
  28. git stash pop
  29. .PHONY: help
  30. help: ## Print this help text
  31. @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'