diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2020-09-10 22:52:13 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2020-09-10 22:52:13 -0700 |
commit | 1e9bea3c84d24867b60751f7fb4e001285e35151 (patch) | |
tree | 88b5b4fe2a441a47ba095edba093fee9618792a0 | |
parent | 5f81e6216c6fa5d14ee86f4e80616943620c1453 (diff) | |
download | isort-issue/1475/improve-unsupported-config-option-error-reporting.tar.gz |
Fix errors found by deepsourceissue/1475/improve-unsupported-config-option-error-reporting
-rw-r--r-- | .deepsource.toml | 1 | ||||
-rw-r--r-- | isort/exceptions.py | 3 |
2 files changed, 3 insertions, 1 deletions
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]]): |