Skip to content

dpuglielli/sample_py

Repository files navigation

Poetry Sample App

A Python app using Poetry.

Setup

Poetry is required.

poetry install

Run program

poetry run sample_py

Tests

Run all tests:

poetry run pytest

Coverage

poetry run pytest --cov=sample_py

To view an HTML report:

poetry run pytest --cov=sample_py --cov-report html
open coverage_html_report/index.html

For Coverage Gutters

poetry run pytest --cov=sample_py --cov-report xml

Mypy typechecking

poetry run mypy sample_py

Graph dependencies

poetry run pydeps sample_py --max-bacon=4 --cluster

Dependency output

<title>G</title><style>.edge>path:hover{stroke-width:8}</style> <title>sample_py_area</title><style>.edge>path:hover{stroke-width:8}</style> sample_py.area <title>sample_py_cli</title><style>.edge>path:hover{stroke-width:8}</style> sample_py.cli <title>sample_py_area->sample_py_cli</title><style>.edge>path:hover{stroke-width:8}</style> <title>sample_py_area_ellipse</title><style>.edge>path:hover{stroke-width:8}</style> sample_py. area. ellipse <title>sample_py_area_ellipse->sample_py_cli</title><style>.edge>path:hover{stroke-width:8}</style> <title>sample_py_area_polygon</title><style>.edge>path:hover{stroke-width:8}</style> sample_py. area. polygon <title>sample_py_area_polygon->sample_py_cli</title><style>.edge>path:hover{stroke-width:8}</style> <title>sample_py_arith</title><style>.edge>path:hover{stroke-width:8}</style> sample_py. arith <title>sample_py_arith->sample_py_cli</title><style>.edge>path:hover{stroke-width:8}</style> <title>sample_py_arith_basic</title><style>.edge>path:hover{stroke-width:8}</style> sample_py. arith. basic <title>sample_py_arith_basic->sample_py_cli</title><style>.edge>path:hover{stroke-width:8}</style>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published