QA/Execution/Web Testing/Docs/Automation/StyleGuide: Difference between revisions

Jump to navigation Jump to search
Line 4: Line 4:


== File Headers ==
== File Headers ==
* At the top of each file should have python file header
* Each file should have a completed copy of the [http://www.mozilla.org/MPL/2.0/ MPL2] license block, immediately followed by an empty line.
<pre class="brush:py;toolbar:false;">
    #!/usr/bin/env python
</pre>
* Each file should have a completed copy of the [http://www.mozilla.org/MPL/2.0/ MPL2] license block, immediately preceded and followed by an empty line.
* Each file should pass [http://www.python.org/dev/peps/pep-0008/ PEP8] except for line length, see below.   
* Each file should pass [http://www.python.org/dev/peps/pep-0008/ PEP8] except for line length, see below.   
<pre class="brush:py;toolbar:false;">
<pre class="brush:py;toolbar:false;">
Confirmed users
2,197

edits

Navigation menu