Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pylama plugin] process parameters passed to Linter.run() #1780

Merged
merged 1 commit into from Jul 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions isort/pylama_isort.py
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