Developer Setup
To begin local development, clone the PyTemplates/typer_cli repository and use one of the following methods to build it. Commands should be executed from inside of the project home folder.
Using poetry
poetry install
Install optional dependencies using the --extras
flag:
poetry install --extras=environment
Using pip
pip install .
Install optional dependencies using square brackets:
pip install .[environment]
Environments
test = [
"pytest",
"pytest-cov",
]
lint = [
"black",
"isort",
"flake8",
"pylint",
"mypy",
"pre-commit",
]
docs = [
"mkdocs",
"mkdocstrings",
"mkdocstrings-python",
"mkdocs-material",
]
# Includes all optional dependencies
dev = [
"pytest",
"pytest-cov",
"black",
"isort",
"flake8",
"pylint",
"mypy",
"pre-commit",
"mkdocs",
"mkdocstrings",
"mkdocstrings-python",
"mkdocs-material",
"bump2version",
]
Using a local docker build
To build an image locally from the Dockerfile:
make build
To run the image:
docker run --rm pytemplates_typer_cli hello user
docker run --rm pytemplates_typer_cli goodbye user
docker run --rm pytemplates_typer_cli version