A prescriptive Python Task runner.
- Code linting by flake8
- The pytest test framework
- Source formatting with Black and isort
- Packaging and dependency management with Poetry
Install Task:
$ brew install go-task
Install Taskfile into project:
$ curl -o Taskfile.yml https://raw.githubusercontent.com/retr0h/task-py/main/Taskfile.yml
$ task
Install Poetry:
- See full installation documentation
Check dependencies are installed:
$ task deps
Module maintenance:
$ task mod
Report likely mistakes in packages:
$ task vet
Run Python program:
$ task run
Test packages:
$ task unit
Test all:
$ task test
Generate coverage:
$ task cov
Reformat files whose formatting differs from py_fmt_command
:
$ task fmt
Check files whose formatting differs from py_fmt_command
:
$ task fmt:check
List targets:
$ task
The MIT License.