Simple template to create Python apps.
Main files and directories structure.
.
├── .coveragerc | Configuration for coverage.
├── .env.example | Example of a .end file.
├── .pre-commit-config.yaml | Pre-commit configuration.
├── Pipfile | Pipenv configuration for environment and dependencies.
├── tasks/ | Invoke tasks directory for running, developing and testing.
├── template/ | Main app directory.
└── tests/ | Tests directory.
Optional
$ pip install pipenv && pipenv install && pipenv install --dev
- Running template
$ invoke template
Tests are run using Python's unittest
- Run all tests
$ invoke test
- Run coverage
$ invoke test.coverage
- Format code
$ invoke dev.black