From 9d2454ebbd1da30f6524cbfc24b2b32b0b601239 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Sun, 11 Jul 2021 23:35:26 -0400 Subject: [PATCH] process parameters passed to Linter.run(), usually via [pylama:isort] section in pylama.ini configuration file --- isort/pylama_isort.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isort/pylama_isort.py b/isort/pylama_isort.py index d8fad9a8d..f6779bd8c 100644 --- a/isort/pylama_isort.py +++ b/isort/pylama_isort.py @@ -24,11 +24,11 @@ def allow(self, path: str) -> bool: """Determine if this path should be linted.""" return path.endswith(".py") - def run(self, path: str, **meta: Any) -> List[Dict[str, Any]]: + def run(self, path: str, params: Dict[str, Any] = None, **meta: Any) -> List[Dict[str, Any]]: """Lint the file. Return an array of error dicts if appropriate.""" with supress_stdout(): try: - if not api.check_file(path, disregard_skip=False): + if not api.check_file(path, disregard_skip=False, **params or {}): return [ { "lnum": 0,