Skip to content

Commit

Permalink
Isort is horribly broken with line wrapping and type ignore comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WillB97 committed Jul 15, 2024
1 parent 48e9331 commit dec813e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runusb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dec813e

Please sign in to comment.