Question: I am using Spyder 2.3.1 and python(x, y).

In the preferences of Spyder you can activate "Style analysis".
This is quite nice, but I want to increase the max. tolerable line length. 
The standard setting for PEP8 is 79 characters.
This can be changed through a setup.cfg with the content:

```
[pep8]
max-line-length = 99

```

This can be read here: <http://pep8.readthedocs.org/en/latest/intro.html#related-tools>

*Where do I put a setup.cfg so Spyder/PEP8 will recognize my new limit?*
Or is there an other way to set this limit or to ignore E501 (line to long)?
Just setting "Show vertical line after 99 characters" in Spyder does not help.

Answer: 
Inspired by Minh's comment I've been able to make this work for spyder 3.8 by doing the following. Find out the ~ directory using

```
import os; os.path.expanduser('~')

```

(see remark ofJustin Harris)

Then add a file to the ~ directory called `.pycodestyle` containing:

```
[pycodestyle]
max-line-length = 99

```

(see Carlos Cordoba's answer)

Restart spyder [EDIT: according to the comments below this is not needed]. This is actually just combining most of the above remarks and answers.
The tox.ini with a pep8 section or a setup.cfg at the project level should do.

<http://pep8.readthedocs.org/en/latest/intro.html#configuration>