Top "Pep8" questions

Coding conventions and style guidelines for Python.

Python: Pep8 E128 indentation error... how can this by styled?

I have this statement as a few lines: return render_to_response('foo/page.html', { 'situations': situations, 'active': active_req, }, …

python coding-style formatting pep8
Python for-loop without index and item

Is it possible in python to have a for-loop without index and item? I have something like the following: list_1 = [] …

python for-loop pep8
python pep8 class in init imported but not used

I'm doing PEP8 checks in python using the python flake8 library. I have an import statement in an __init__.py …

python pep8 flake8
Python PEP 8: Blank lines at the beginning of a module

There is a question who treat about this but not talk about all the points I interested. PEP 8 says about …

python coding-style pep8 pep
How to format a python assert statement that complies with PEP8?

How does one format a long assert statement that complies with PEP8? Please ignore the contrived nature of my example. …

python assert pep8
Blank line Python PEP8 best practice in class definition

I always leave a blank line after class definition and the code seems to be PEP8 compliant, as no warning …

python pep8
How to tell flake8 to ignore comments

I'm using flake8 in emacs in order to clean up my python code. I find it annoying to have my …

python pep8 flake8
How would you properly break this line to match pep8 rules?

Given this Python class, implementing a Django form, how would you properly break this to meet the PEP8 standards? class …

python pep8
Python alignment of assignments (style)

I really like following style standards, as those specified in PEP 8. I have a linter that checks it automatically, and …

python coding-style pep8
How can I use Emacs Flymake mode for python with pyflakes and pylint checking code?

For checking code in python mode I use flymake with pyflakes Also I want check code style (pep8) with pylint (…

python emacs pylint pep8 pyflakes