From 1e9bea3c84d24867b60751f7fb4e001285e35151 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Thu, 10 Sep 2020 22:52:13 -0700 Subject: Fix errors found by deepsource --- .deepsource.toml | 1 + isort/exceptions.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.deepsource.toml b/.deepsource.toml index 81eded69..cfbbec30 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -14,3 +14,4 @@ enabled = true [analyzers.meta] runtime_version = "3.x.x" + max_line_length = 100 diff --git a/isort/exceptions.py b/isort/exceptions.py index 3d152587..265928e9 100644 --- a/isort/exceptions.py +++ b/isort/exceptions.py @@ -141,7 +141,8 @@ class UnsupportedSettings(ISortError): that it doesn't support. """ - def _format_option(self, name: str, value: Any, source: str) -> str: + @staticmethod + def _format_option(name: str, value: Any, source: str) -> str: return f"\t- {name} = {value} (source: '{source}')" def __init__(self, unsupported_settings: Dict[str, Dict[str, str]]): -- cgit v1.2.1