Skip to content

Commit 13887ee

Browse files
committed
Project structure created
1 parent b7e4a62 commit 13887ee

File tree

4 files changed

+1020
-0
lines changed

4 files changed

+1020
-0
lines changed

Makefile

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
install: ## Install dependencies
2+
@poetry install
3+
4+
format: ## Install dependencies
5+
poetry run black .
6+
7+
test: ## Run tests
8+
poetry run coverage run --source=binary_search_tree -m pytest tests
9+
10+
lint: ## Run linter
11+
poetry run flake8 binary_search_tree
12+
13+
selfcheck: ## Checks the validity of the pyproject.toml file
14+
poetry check
15+
16+
check: ## selfcheck + test + lint
17+
@make selfcheck
18+
@make test
19+
@make lint
20+
poetry run black --check
21+
22+
build: ## Check and builds a package
23+
@make check
24+
@poetry build
25+
26+
cc-coverage: ## Prepare coverage report for Codeclimate
27+
poetry run coverage xml
28+
29+
help: ## This help message
30+
@echo "Available commands:"
31+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
32+
33+
.PHONY: install test lint selfcheck check build cc-coverage help
34+
.DEFAULT_GOAL := help

binary_search_tree/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# -*- coding:utf-8 -*-
2+
3+
"""Implementation binary search tree project."""

0 commit comments

Comments
 (0)