mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Add a make file for dev tasks.
This commit is contained in:
parent
58f3a0e5ed
commit
3d6b05b3cc
1 changed files with 22 additions and 0 deletions
22
Makefile
Normal file
22
Makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
PYTHON ?= python3
|
||||
|
||||
.PHONY: help
|
||||
help: ## Print help about available targets.
|
||||
@grep -h -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
.PHONY: depends
|
||||
depends:
|
||||
$(PYTHON) -m pip install flake8
|
||||
$(PYTHON) -m pip install coverage
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
$(PYTHON) -m flake8 --ignore E24,E121,E123,E125,E126,E221,E226,E266,E704,E265 $(CURDIR)
|
||||
|
||||
.PHONY: test
|
||||
test: ## Run the test suite.
|
||||
$(PYTHON) -m tests
|
||||
|
||||
.PHONY: coverage
|
||||
coverage: ## Check line coverage.
|
||||
$(PYTHON) -m coverage run -m tests
|
||||
Loading…
Add table
Add a link
Reference in a new issue