Skip to content

Commit 023b58e

Browse files
committed
Fix PyLint warnings
1 parent 3211a2b commit 023b58e

File tree

25 files changed

+36
-32
lines changed

25 files changed

+36
-32
lines changed

platformio/account/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def change_password(self, old_password, new_password):
144144

145145
def registration(
146146
self, username, email, password, firstname, lastname
147-
): # pylint:disable=too-many-arguments
147+
): # pylint: disable=too-many-arguments,too-many-positional-arguments
148148
try:
149149
self.fetch_authentication_token()
150150
except: # pylint:disable=bare-except

platformio/builder/tools/piotarget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _clean_dir(path):
6161
print("Done cleaning")
6262

6363

64-
def AddTarget( # pylint: disable=too-many-arguments
64+
def AddTarget( # pylint: disable=too-many-arguments,too-many-positional-arguments
6565
env,
6666
name,
6767
dependencies,

platformio/check/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
type=click.Choice(DefectItem.SEVERITY_LABELS.values()),
6161
)
6262
@click.option("--skip-packages", is_flag=True)
63-
def cli(
63+
def cli( # pylint: disable=too-many-positional-arguments
6464
environment,
6565
project_dir,
6666
project_conf,

platformio/check/defect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class DefectItem:
2929
SEVERITY_LOW = 4
3030
SEVERITY_LABELS = {4: "low", 2: "medium", 1: "high"}
3131

32-
def __init__(
32+
def __init__( # pylint: disable=too-many-positional-arguments
3333
self,
3434
severity,
3535
category,

platformio/commands/ci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def validate_path(ctx, param, value): # pylint: disable=unused-argument
6363
@click.option("-e", "--environment", "environments", multiple=True)
6464
@click.option("-v", "--verbose", is_flag=True)
6565
@click.pass_context
66-
def cli( # pylint: disable=too-many-arguments, too-many-branches
66+
def cli( # pylint: disable=too-many-arguments,too-many-positional-arguments, too-many-branches
6767
ctx,
6868
src,
6969
lib,

platformio/commands/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def cli(ctx, **options):
152152
"-f", "--force", is_flag=True, help="Reinstall/redownload library if exists"
153153
)
154154
@click.pass_context
155-
def lib_install( # pylint: disable=too-many-arguments,unused-argument
155+
def lib_install( # pylint: disable=too-many-arguments,too-many-positional-arguments,unused-argument
156156
ctx, libraries, save, silent, interactive, force
157157
):
158158
click.secho(
@@ -210,7 +210,7 @@ def lib_uninstall(ctx, libraries, save, silent):
210210
@click.option("-s", "--silent", is_flag=True, help="Suppress progress reporting")
211211
@click.option("--json-output", is_flag=True)
212212
@click.pass_context
213-
def lib_update( # pylint: disable=too-many-arguments
213+
def lib_update( # pylint: disable=too-many-arguments,too-many-positional-arguments
214214
ctx, libraries, only_check, dry_run, silent, json_output
215215
):
216216
only_check = dry_run or only_check

platformio/commands/platform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def platform_show(ctx, platform, json_output): # pylint: disable=too-many-branc
159159
help="Reinstall/redownload dev/platform and its packages if exist",
160160
)
161161
@click.pass_context
162-
def platform_install( # pylint: disable=too-many-arguments
162+
def platform_install( # pylint: disable=too-many-arguments,too-many-positional-arguments
163163
ctx,
164164
platforms,
165165
with_package,
@@ -224,7 +224,7 @@ def platform_uninstall(ctx, platforms):
224224
@click.option("-s", "--silent", is_flag=True, help="Suppress progress reporting")
225225
@click.option("--json-output", is_flag=True)
226226
@click.pass_context
227-
def platform_update( # pylint: disable=too-many-locals, too-many-arguments
227+
def platform_update( # pylint: disable=too-many-locals,too-many-arguments,too-many-positional-arguments
228228
ctx, platforms, only_check, dry_run, silent, json_output, **_
229229
):
230230
only_check = dry_run or only_check

platformio/debug/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
@click.option("--interface", type=click.Choice(["gdb"]))
5858
@click.argument("client_extra_args", nargs=-1, type=click.UNPROCESSED)
5959
@click.pass_context
60-
def cli(
60+
def cli( # pylint: disable=too-many-positional-arguments
6161
ctx,
6262
project_dir,
6363
project_conf,
@@ -111,7 +111,9 @@ def cli(
111111
return None
112112

113113

114-
def _configure(ctx, project_config, env_name, load_mode, verbose, client_extra_args):
114+
def _configure(
115+
ctx, project_config, env_name, load_mode, verbose, client_extra_args
116+
): # pylint: disable=too-many-positional-arguments
115117
platform = PlatformFactory.from_env(env_name, autoinstall=True)
116118
debug_config = DebugConfigFactory.new(
117119
platform,

platformio/debug/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_default_debug_env(config):
7676

7777
def predebug_project(
7878
ctx, project_dir, project_config, env_name, preload, verbose
79-
): # pylint: disable=too-many-arguments
79+
): # pylint: disable=too-many-arguments,too-many-positional-arguments
8080
debug_testname = project_config.get("env:" + env_name, "debug_test")
8181
if debug_testname:
8282
test_names = list_test_names(project_config)

platformio/device/finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def is_serial_port_ready(port, timeout=1):
8989

9090

9191
class SerialPortFinder:
92-
def __init__( # pylint: disable=too-many-arguments
92+
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
9393
self,
9494
board_config=None,
9595
upload_protocol=None,

0 commit comments

Comments
 (0)