Skip to content

Commit

Permalink
pylint: delint against pylint 3.3.0
Browse files Browse the repository at this point in the history
Recently released pylint 3.3.0 introduced the new check
too-many-positional-arguments:
https://pylint.readthedocs.io/en/latest/whatsnew/3/3.3/index.html#new-checks

> Used when a function has too many positional arguments.

See for details:
https://pylint.readthedocs.io/en/latest/user_guide/messages/refactor/too-many-positional-arguments.html

Fixes: #76
Signed-off-by: Stanislav Levin <[email protected]>
  • Loading branch information
stanislavlevin committed Sep 23, 2024
1 parent cba438d commit 7da3a56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pyproject_installer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def wrapped(args, parser):

class RunnerResult:
def __init__(
self, status, message, log, exception=None, print_traceback=False
self, status, message, log, *, exception=None, print_traceback=False
):
self.status = status
self.message = message
Expand Down
1 change: 1 addition & 0 deletions src/pyproject_installer/deps_cmd/deps_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def depformat(self, req, depformat, depformatextra):

def eval(
self,
*,
srcnames=[],
depformat=None,
depformatextra=None,
Expand Down
4 changes: 3 additions & 1 deletion src/pyproject_installer/lib/build_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ def parse_build_system_spec(srcdir):
return bs


def make_helper_args(python, result_fd, verbose, build_system, hook, hook_args):
def make_helper_args(
*, python, result_fd, verbose, build_system, hook, hook_args
):
args = [
python,
BACKEND_CALLER,
Expand Down

0 comments on commit 7da3a56

Please sign in to comment.