Skip to content

Commit

Permalink
chore: Add makefile rules
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 26, 2019
1 parent dd4c334 commit 0c4d141
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
.PHONY: docs
.PHONY: test-py36
.PHONY: test-py37
.PHONY: clean
.PHONY: clean-tests
.DEFAULT_GOAL := help

help: ## Print this help.
Expand Down Expand Up @@ -39,5 +41,17 @@ run-black: ## Lint the code using black.
run-isort: ## Sort the imports using isort.
poetry run isort -y -rc src/ tests/

test: ## Run the tests using pytest.
lint: run-black run-isort ## Run linting tools on the code.

clean-tests: ## Delete temporary tests files.
@rm -rf tests/tmp/* 2>/dev/null

clean: clean-tests ## Delete temporary files.
@rm -rf build 2>/dev/null
@rm -rf dist 2>/dev/null
@rm -rf src/aria2p.egg-info 2>/dev/null
@rm -rf .coverage 2>/dev/null
@rm -rf .pytest_cache 2>/dev/null

test: clean-tests ## Run the tests using pytest.
poetry run pytest -n6 2>/dev/null

0 comments on commit 0c4d141

Please sign in to comment.