mirror of
https://github.com/sivel/speedtest-cli.git
synced 2024-11-27 04:09:53 +08:00
1.6 KiB
1.6 KiB
Pull Requests
Pull requests should be
- Made against the
devel
branch. - Made from a git feature branch.
Pull requests will not be accepted that
- Are not made against the
devel
branch - Are submitted from a branch named
devel
- Do not pass pep8/pyflakes/flake8
- Do not work with Python 2.4-3.4 or pypy
- Add python modules not included with the Python standard library
- Are made by editing files via the GitHub website
Coding Guidelines
In general, I follow strict pep8 and pyflakes. All code must pass these tests. Since we support python 2.4-3.4 and pypy, pyflakes reports unknown names in python 3. pyflakes is run in python 2.7 only in my tests.
Some other points
- Do not use
\
for line continuations, long strings should be wrapped in()
. Imports should start a brand new line in the form offrom foo import...
- String quoting should be done with single quotes
'
, except for situations where you would otherwise have to escape an internal single quote - Docstrings should use three double quotes
"""
- All functions, classes and modules should have docstrings following both the PEP257 and PEP8 standards
- Inline comments should only be used on code where it is not immediately obvious what the code achieves
Supported Python Versions
All code needs to support Python 2.4-3.4 and pypy.
Permitted Python Modules
Only modules included in the standard library are permitted for use in this application. This application should not be dependent on any 3rd party modules that would need to be installed external to just Python itself.
Testing
Currently there are no unit tests, but they are planned.