Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to ignore PEP8 error or warning in PyDev

📅 2015-Jan-05 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ eclipse, error, pep8, pydev, warning ⬩ 📚 Archive

[caption id="attachment_5408" align="aligncenter" width="682"][Ignore PEP8 warning or error in PyDev](https://codeyarns.files.wordpress.com/2015/01/20150105-pep8.png) Ignore PEP8 warning or error in PyDev[/caption]

PyDev can be configured to analyze your code to check if it complies with the PEP8 guidelines. It generates errors and warnings if the code does not comply. For example, E501 complains if a line is longer than 80 characters.

Sometimes, you may want to ignore some specific errors or warnings of PEP8. To do this, go to Windows -> Preferences -> PyDev -> Editor -> Code analysis -> PEP8.py. Here add an --ignore string with the error and warning numbers you want ignored. For example, --ignore=E501. Restart Eclipse for changes to take effect.

Tried with: PyDev 3.9.0, Python 3.4.0, Eclipse Luna 4.4.1 and Ubuntu 14.04