File: pep8.txt

package info (click to toggle)
phatch 0.2.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 26,576 kB
  • ctags: 5,430
  • sloc: python: 34,197; makefile: 100; xml: 9
file content (16 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Code Style: PEP8
****************

http://www.python.org/dev/peps/pep-0008/

Any code submitted to Phatch **must** follow the PEP8 code style, which is used in the standard library of the main Python distribution.

You can test if your code follows PEP8 by running the following script in the ``tests`` folder::

    python pep8_test.py

As you should have installed the bazaar precommit hook for Phatch, this test will also be enforced before you are able to commit to your branch.

.. warning::

    If you use Windows make sure that you save your code with ``\n`` line endings. Code with ``\r\n`` line endings will be refused.