Top "Pep8" questions

Coding conventions and style guidelines for Python.

How to fix Pylint "Wrong hanging indentation" and PEP8 E121?

I am trying to properly indent following piece of code: RULES_LIST = [ ('Name1', 1, 'Long string upto 40 chars'), ('Name2', 2, …

python indentation pylint pep8
How should I format a long url in a python comment and still be PEP8 compliant

In a block comment, I want to reference a URL that is over 80 characters long. What is the preferred convention …

python pep8
Verifying PEP8 in iPython notebook code

Is there an easy way to check that iPython notebook code, while it's being written, is compliant with PEP8?

python ipython ipython-notebook pep8
What PEP 8 guidelines do you ignore, and which ones do you stick to?

Over the years, the more Python I write, the more I find myself agreeing with most of the guidelines, though …

python pep8 pep
PEP8 naming convention on test classes

I have been looking at PEP 8 -- Style Guide for Python Code and PEP8 -- Advanced Usage for clues on …

python class testing pep8
Complete code example that demonstrates all PEP-8 rules

I want my code to be PEP-8 compliant. However, reading the PEP8-page everytime I forgot any of the rules …

python pep8
PEP8: conflict between W292 and W391

As far as I know in unix it's a good practice to always have blank line at the end of …

python pep8
How to use continuation line over-indented for visual indent?

I'm having a hard time trying to fix this piece of code in order for it to fit PEP8's …

python pep8
How to break long string lines for PEP8 compliance?

I have many long lines like this in the project and don't know how to break it to keep PEP8 …

python string pep8
How can I configure Pylint to check all things PEP8 checks?

Searching for an answer on Pylint's mailing list brings no interesting results. Pylint is known to be very customizable, so …

python coding-style lint pylint pep8