[v4,1/2] doc: increase python max line length to 100
Checks
Commit Message
Unify with C recommendations which allow line length of up to 100
characters.
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
---
.editorconfig | 2 +-
doc/doc_build/meson-private/meson.lock | 0
doc/guides/contributing/coding_style.rst | 1 +
dts/pyproject.toml | 4 ++--
4 files changed, 4 insertions(+), 3 deletions(-)
create mode 100644 doc/doc_build/meson-private/meson.lock
Comments
On Fri, 13 Oct 2023 09:58:04 +0200
Juraj Linkeš <juraj.linkes@pantheon.tech> wrote:
> Unify with C recommendations which allow line length of up to 100
> characters.
>
> Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
> .editorconfig | 2 +-
> doc/doc_build/meson-private/meson.lock | 0
> doc/guides/contributing/coding_style.rst | 1 +
> dts/pyproject.toml | 4 ++--
> 4 files changed, 4 insertions(+), 3 deletions(-)
> create mode 100644 doc/doc_build/meson-private/meson.loc
Look like meson.lock snuck into this patchset.
Assume that was a mistake.
On Fri, Oct 13, 2023 at 6:09 PM Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> On Fri, 13 Oct 2023 09:58:04 +0200
> Juraj Linkeš <juraj.linkes@pantheon.tech> wrote:
>
> > Unify with C recommendations which allow line length of up to 100
> > characters.
> >
> > Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
> > Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> > ---
> > .editorconfig | 2 +-
> > doc/doc_build/meson-private/meson.lock | 0
> > doc/guides/contributing/coding_style.rst | 1 +
> > dts/pyproject.toml | 4 ++--
> > 4 files changed, 4 insertions(+), 3 deletions(-)
> > create mode 100644 doc/doc_build/meson-private/meson.loc
>
> Look like meson.lock snuck into this patchset.
> Assume that was a mistake.
My bad, let me send a fix.
@@ -16,7 +16,7 @@ max_line_length = 100
[*.py]
indent_style = space
indent_size = 4
-max_line_length = 79
+max_line_length = 100
[meson.build]
indent_style = space
new file mode 100644
@@ -880,6 +880,7 @@ All Python code should be compliant with
`PEP8 (Style Guide for Python Code) <https://www.python.org/dev/peps/pep-0008/>`_.
The ``pep8`` tool can be used for testing compliance with the guidelines.
+Note that line lengths are acceptable up to 100 characters, which is in line with C recommendations.
Integrating with the Build System
---------------------------------
@@ -41,7 +41,7 @@ build-backend = "poetry.core.masonry.api"
[tool.pylama]
linters = "mccabe,pycodestyle,pyflakes"
format = "pylint"
-max_line_length = 88 # https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
+max_line_length = 100
[tool.mypy]
python_version = "3.10"
@@ -55,4 +55,4 @@ profile = "black"
[tool.black]
target-version = ['py310']
include = '\.pyi?$'
-line-length = 88 # https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
+line-length = 100