Skip to content

Commit

Permalink
process parameters passed to Linter.run(), usually via [pylama:isort]…
Browse files Browse the repository at this point in the history
… section in pylama.ini configuration file
  • Loading branch information
adbenitez committed Jul 12, 2021
1 parent 85262f0 commit 9d2454e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isort/pylama_isort.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9d2454e

Please sign in to comment.