[![PyPI Python Versions](https://img.shields.io/pypi/pyversions/flowtool-python.svg)](https://pypi.python.org/pypi/flowtool-python)
[![PyPI Latest Version](https://img.shields.io/pypi/v/flowtool-python.svg)](https://pypi.python.org/pypi/flowtool-python)
[![PyPI Distribution Format](https://img.shields.io/pypi/format/flowtool-python.svg)](https://pypi.python.org/pypi/flowtool-python)

# flowtool-python

A collection of functions helpful for python development.

## Contents

The `flowtool-python` package currently contains one new command for `flowtool`:

* `py-clean` - recursively cleans temporary files (`*.pyc`) and directories (`__pycache__`).

Secondly it brings some git hooks:

* `pylint-minimal` - (pre-commit, commit-msg) - checks all python source files added to the commit with pylint and a minimalistic config
* `pylint-commit-range` - (pre-push) - checks all python source files that differ from origin/master on push
* `pytest-hook` - (pre-commit, commit-msg) - run pytest in all dirs containing a `pytest.ini` or `tox.ini`

The hooks can be installed via the `flowtool-githooks` manager:

```shell
flowtool githooks-install
flowtool githooks-scripts --hook pre-commit --add _flowtool_githooks.demo
flowtool githooks-scripts --hook commit-msg --add _flowtool_githooks.demo
flowtool githooks-scripts --hook pre-push --add _flowtool_githooks.demo
```
