From dec813e098e662fcc8e588d0a9584aea39feee24 Mon Sep 17 00:00:00 2001 From: WillB97 Date: Tue, 16 Jul 2024 00:13:34 +0100 Subject: [PATCH] Isort is horribly broken with line wrapping and type ignore comments --- runusb/__main__.py | 2 +- setup.cfg | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/runusb/__main__.py b/runusb/__main__.py index 4546234..2374553 100755 --- a/runusb/__main__.py +++ b/runusb/__main__.py @@ -27,7 +27,7 @@ try: from logger_extras import MQTTHandler # type: ignore[attr-defined] - from paho.mqtt.client import Client as MQTTClient # type: ignore[import-untyped,unused-ignore] # noqa: E501 + from paho.mqtt.client import Client as MQTTClient # type: ignore[import-untyped,unused-ignore] except ImportError: MQTTHandler = None diff --git a/setup.cfg b/setup.cfg index 37f9686..66d1ddf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,12 +40,13 @@ ignore = W503 # try to keep it below 80, but this allows us to push it a bit when needed. -max_line_length = 90 +max_line_length = 100 [isort] atomic = true balanced_wrapping = true +line_length = 100 default_section = THIRDPARTY sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER