Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 817 Bytes

File metadata and controls

43 lines (31 loc) · 817 Bytes

python-template

Generic template for my python projects in an effort to maintain common structure & practices

This can be used when creating a repository by selecting it next to "Start with a template".

For more info on templates, refer to the docs

Testing

This template includes a pytest test setup for easy testing of your Python code.

Installation

Install test dependencies:

pip install -r requirements-dev.txt

Running Tests

Run all tests:

pytest

Run with coverage report:

pytest --cov=src --cov-report=html

Run specific test file:

pytest tests/test_some_module.py

Run with verbose output:

pytest -v