alexcouper / captainhook

Git hook scripts
BSD 3-Clause "New" or "Revised" License
54 stars 14 forks source link

Flake8 ignoring flake8 config in tox.ini #62

Closed alexcouper closed 10 years ago

alexcouper commented 10 years ago

I have a tox.ini file with a [flake8] section.

It is being ignored.

alexcouper commented 10 years ago

Issue is (I think) that git is running the scripts from some location unrelated to the project. We'll need to pass in the path to the tox.ini directly.

See:

https://github.com/singingwolfboy/flake8/blob/master/flake8/engine.py#L90 and https://github.com/jcrocholl/pep8/blob/4c5bf00cb613be617c7f48d3b2b82a1c7b895ac1/pep8.py#L1881

Should be able to pass in a config_file to get round the issue.

alexcouper commented 10 years ago

Fixed in #63