Skip to content
Myr

style guide

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 2cb052a · Browse files · 1 file+26 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+26 added−2 removed

  • other:+26 added−2 removed

1 file+26 added−2 removed

modified:docs/dev/contributing.rst+26 added-2 removed
66 unmodified lines
6768Code Contributions69------------------7071Steps72~~~~~71Steps for Submitting Code72~~~~~~~~~~~~~~~~~~~~~~~~~7374When contributing code, you'll want to follow this checklist:75761. Fork the repository on GitHub.
29 unmodified lines
106asking for help.107108Please also check the :ref:`early-feedback` section.109110Code Style111~~~~~~~~~~112113The Requests codebase uses the `PEP8`_ code style.114115In addition to the standards outlined in PEP8, we have a few guidelines:116117- Line-length can exceed 79 characters, to 100, when convenient.118- Line-length can exceed 100 characters, when doing otherwise would be *terribly* inconvenient.119- Always use single-quoted strings (e.g. ``'#flatearth'``), unless a single-quote occurs within the string.120121Additionally, one of the few style recommendations PEP8 makes for122`line continuations`_ lacks all sense of taste, and is not to be found within123the Requests codebase::124125 # Aligned with opening delimiter.126 foo = long_function_name(var_one, var_two,127 var_three, var_four)128129Just don't. Ever.130131.. _PEP8: https://www.python.org/dev/peps/pep-0008/132.. _line continuations: https://www.python.org/dev/peps/pep-0008/#indentation133134Documentation Contributions135---------------------------136137Documentation improvements are always welcome! The documentation files live in
42 unmodified lines