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

Ignore PEP8 warning or error in PyDev
Ignore PEP8 warning or error in PyDev

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 -> 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