Skip to content

Commit 1336e15

Browse files
emlovefabaff
authored andcommitted
Add section about maximum line length (home-assistant#2119)
1 parent 46e6daf commit 1336e15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/developers/development_testing.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@ The `flake8-docstrings` extension will check docstrings according to [PEP257](ht
6262
### {% linkable_title Notes on PyLint and PEP8 validation %}
6363

6464
If you can't avoid a PyLint warning, add a comment to disable the PyLint check for that line with `# pylint: disable=YOUR-ERROR-NAME`. An example of an unavoidable PyLint warning is not using the passed-in datetime if you're listening for a time change.
65+
66+
### {% linkable_title Maximum Line Length %}
67+
68+
As part of the linting process, all code is checked for a maximum line length of 79 characters. This comes directly from the [PEP8 style guide](https://www.python.org/dev/peps/pep-0008/#maximum-line-length), and is also used by the Python standard library. All code must pass these linting checks, and no exceptions will be made. There have already been numerous requests to increase the maximum line length, but after evaluating the options, the Home Assistant maintainers have decided to stay at 79 characters. This decision is final.

0 commit comments

Comments
 (0)