When using git.hook tox.ini in working directory of git is only used if it was added to git index
flake8 in python3.5 virtualenv under Ubuntu16.04
flake8 was installed via
pip flake8 resulting in flake8 3.0.4
When using flake8 via git hook "pre-commit" generated by
flake8 --install-hook=git a tox.ini file in the git repo is only used if this file is added to the git index.
The expected behavior would be, that flake8 reads this tox.ini file in any case.