Skip to content

Commit f901c64

Browse files
committed
Manual fixes
1 parent 970a96e commit f901c64

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

src/arcdata/arcdata/azext_arcdata/core/layout.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
from abc import ABC, abstractmethod
99
from tabulate import tabulate
1010
from collections import OrderedDict
11-
from prompt_toolkit import print_formatted_text as pft, ANSI # pyright: ignore[reportMissingImports]
11+
from prompt_toolkit import print_formatted_text as pft, ANSI # pylint: disable=import-error
1212
import string
1313
import os
1414

1515
__all__ = ["BoxLayout"]
1616

1717

1818
@add_metaclass(ABC)
19-
class BaseLayout:
19+
class BaseLayout: # pylint: disable=too-few-public-methods
2020
def __init__(self):
2121
pass
2222

@@ -162,7 +162,7 @@ def render(self):
162162
def _stack_boxes(self):
163163
def stack(data, boxes, parent="", name="", trail="", identifiers=None):
164164
empty_slot = "-"
165-
for key, value in data.items():
165+
for key, value in data.items(): # pylint: disable=too-many-nested-blocks
166166
# assume name is first XYXName
167167
if isinstance(key, str) and "Name" in key:
168168
name = value
@@ -317,7 +317,7 @@ def __repr__(self):
317317
# ---------------------------------------------------------------------------- #
318318

319319

320-
class Box:
320+
class Box: # pylint: disable=too-few-public-methods
321321
def __init__(self, data):
322322
self._data = data
323323
self._identifiers = (

src/arcdata/arcdata/azext_arcdata/dc/custom.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ def dc_config_add(client, config_file, json_values):
396396
"""
397397
Add new key and value to the given config file
398398
"""
399+
_ = client # pylint: disable=unused-argument
400+
399401
try:
400402
config_object = DeploymentConfigUtil.config_add(
401403
config_file, json_values
@@ -409,6 +411,8 @@ def dc_config_replace(client, config_file, json_values):
409411
"""
410412
Replace the value of a given key in the given config file
411413
"""
414+
_ = client # pylint: disable=unused-argument
415+
412416
try:
413417
config_object = DeploymentConfigUtil.config_replace(
414418
config_file, json_values
@@ -422,6 +426,8 @@ def dc_config_remove(client, config_file, json_path):
422426
"""
423427
Remove a key from the given config file
424428
"""
429+
_ = client # pylint: disable=unused-argument
430+
425431
try:
426432
config_object = DeploymentConfigUtil.config_remove(
427433
config_file, json_path
@@ -435,6 +441,8 @@ def dc_config_patch(client, config_file, patch_file):
435441
"""
436442
Patch a given file against the given config file
437443
"""
444+
_ = client # pylint: disable=unused-argument
445+
438446
try:
439447
config_object = DeploymentConfigUtil.config_patch(
440448
config_file, patch_file

src/arcdata/arcdata/azext_arcdata/sqlarc/common/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
logger = get_logger(__name__)
2121

2222

23-
class AzureArcSqlWebService:
23+
class AzureArcSqlWebService: # pylint: disable=too-many-instance-attributes
2424
logger = get_logger(__name__)
2525

2626
# initialize the service for making Http Requests to ARM

src/arcdata/arcdata/azext_arcdata/sqlmi/custom.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@
9797

9898
logger = get_logger(__name__)
9999

100+
# pylint: disable=too-many-locals, too-many-branches
101+
100102

101103
def arc_sql_mi_create(
102104
client,

0 commit comments

Comments
 (0)