-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
501 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
.PHONY: test | ||
test: # Run tests with pytest and coverage | ||
test: | ||
coverage erase | ||
coverage run -m pytest -v | ||
coverage report -m | ||
|
||
BLACK_OPTS := -l 95 | ||
SRC_FILES := arg_validators dataframe_utils graph_utils plot text_utils | ||
SRC_FILES := $(addprefix pyforestplot/, $(addsuffix .py, $(SRC_FILES))) | ||
.PHONY: lint | ||
lint: # Check with mypy, pyflakes, black | ||
lint: | ||
mypy $(SRC_FILES) --ignore-missing-imports | ||
python -m pyflakes tests/*.py $(SRC_FILES) | ||
black pyforestplot/*.py $(BLACK_OPTS) | ||
black tests/*.py $(BLACK_OPTS) | ||
|
||
.PHONY: prepack | ||
prepack: # Prepare packaging for PyPi | ||
prepack: | ||
@rm -rf dist/ pyforestplot.egg-info/ | ||
@python setup.py sdist | ||
twine check dist/* | ||
|
||
PACKAGE_FILES := build/ dist/ *.egg-info/ *.egg | ||
.PHONY: cleanpack | ||
cleanpack: # Remove distribution/packaging files | ||
cleanpack: | ||
@rm -rf $(PACKAGE_FILES) | ||
|
||
.PHONY: help | ||
help: # Show Help | ||
@egrep -h '\s#\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?# "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# from pyforestplot.plot import * | ||
from pyforestplot.plot import forestplot | ||
from pyforestplot.dataframe_utils import load_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.