-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating workflow action versions, adding latest python version to ac…
…tions, adding repo link to readme, adding error handling test functions to pytest, adding latest python version to pytest
- Loading branch information
1 parent
fca5815
commit 58a247a
Showing
10 changed files
with
90 additions
and
35 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
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
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
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 +1 @@ | ||
3.9 | ||
3.10 |
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
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,39 +1,60 @@ | ||
.DEFAULT_GOAL := test | ||
|
||
|
||
.DEFAULT_GOAL := help | ||
|
||
|
||
.PHONY : help | ||
help: | ||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | ||
|
||
|
||
# | ||
# Virtual environment setup | ||
# You may want to replace python3 with the path to your python3 executable, | ||
# e.g. the output of `pyenv which python3`when using pyenv | ||
# | ||
create-venv: | ||
python3 -m venv '.venv' | ||
.PHONY : create-venv | ||
create-venv: ## Create virtualenv | ||
python3 -m virtualenv '.venv' | ||
echo "Don't forget to activate with 'source .venv/bin/activate'" | ||
|
||
# | ||
# Install requirements | ||
# | ||
install: | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install flit poetry | ||
.PHONY : install | ||
install: ## Install dependencies for production | ||
python3 -m pip --require-virtualenv install --upgrade pip | ||
python3 -m pip --require-virtualenv install flit poetry | ||
python3 -m flit install --deps production | ||
|
||
install-dev: install | ||
python3 -m pip install '.[dev]' | ||
.PHONY : install-dev | ||
install-dev: install ## Install dependencies for development and production | ||
python3 -m pip --require-virtualenv install '.[dev]' | ||
python3 -m certifi | ||
pre-commit install --hook-type pre-commit --hook-type pre-push | ||
echo "Please also install pandoc to create the documentation." | ||
|
||
upload: check | ||
flit publish | ||
|
||
# | ||
# Testing | ||
# Build and upload package | ||
# | ||
unittest: | ||
coverage run -m pytest --maxfail=10 | ||
.PHONY : build | ||
build: ## Build python package | ||
python3 -m build | ||
python3 -m twine check --strict dist/*.whl | ||
|
||
.PHONY : upload | ||
upload: ## Publish package with flit | ||
python3 -m flit publish | ||
|
||
coverage-report: unittest | ||
coverage report | ||
coverage html | ||
# | ||
# Testing | ||
# | ||
.PHONY : pytest | ||
pytest: ## Run pytest with coverage | ||
python3 -m coverage run -m pytest --maxfail=10 | ||
|
||
test: check unittest | ||
.PHONY : coverage-report | ||
coverage-report: pytest ## Generate coverage report | ||
python3 -m coverage report -m | ||
python3 -m coverage html |
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
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
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ description = "Visualize cluster assignments at different resolutions" | |
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
maintainers = [ | ||
{ name = "Malte Hellmig", email = "[email protected]" }, | ||
{ name = "Malte Hellmig", email = "[email protected]" }, | ||
{ name = "Malte Kuehl", email = "[email protected]" }, | ||
] | ||
authors = [ { name = "Malte Hellmig" }, { name = "Malte Kuehl" } ] | ||
|
@@ -47,6 +47,7 @@ optional-dependencies.dev = [ | |
"furo", | ||
"ipykernel", | ||
"ipython", | ||
"ipywidgets", | ||
"myst-parser", | ||
"nbsphinx", | ||
"pandas", | ||
|
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