From 4a5b4e63c8177ec1b1c7d1ecb4eb2c448c7481a3 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Mon, 16 Jan 2023 23:04:25 +0100 Subject: [style] Limit line length and complexity using flake8 (#8064) 125 is a good start. The check was activated in pylint with value = 100, but flake8 is less lenient than pylint and does not make any exceptions (for docstrings, strings and comments in particular). --- setup.cfg | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index b6ebd2b77..e4c696c4c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,15 +12,14 @@ license_files = # Incompatible with black see https://github.com/ambv/black/issues/315 # E203: Whitespace before ':' # W503: Line break occurred before a binary operator -# E501: Line too long # B028: consider using the `!r` conversion flag ignore = E203, W503, - E501, B028, -max-line-length=88 -max-complexity=39 +# Flake8 is less lenient than pylint and does not make any exceptions +# (for docstrings, strings and comments in particular). +max-line-length=125 # Required for flake8-typing-imports (v1.12.0) # The plugin doesn't yet read the value from pyproject.toml min_python_version = 3.7.2 -- cgit v1.2.1