Skip to content

Commit

Permalink
chore: quiet max args linter, but leave enabled for future things
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Sep 22, 2024
1 parent 0f782b0 commit 1e5aa16
Show file tree
Hide file tree
Showing 20 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion scrapli/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _signal_raise_exception(
return _handle_timeout(transport=transport, logger=logger, message=message)


def _multiprocessing_timeout(
def _multiprocessing_timeout( # pylint: disable=R0917
transport: "BaseTransport",
logger: LoggerAdapterT,
timeout: float,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/base/base_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


class BaseDriver:
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
port: Optional[int] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/arista_eos/async_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def eos_on_close(conn: AsyncNetworkDriver) -> None:


class AsyncEOSDriver(AsyncNetworkDriver, EOSDriverBase):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/arista_eos/sync_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def eos_on_close(conn: NetworkDriver) -> None:


class EOSDriver(NetworkDriver, EOSDriverBase):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/cisco_iosxe/async_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def iosxe_on_close(conn: AsyncNetworkDriver) -> None:


class AsyncIOSXEDriver(AsyncNetworkDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/cisco_iosxe/sync_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def iosxe_on_close(conn: NetworkDriver) -> None:


class IOSXEDriver(NetworkDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/cisco_iosxr/async_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def iosxr_on_close(conn: AsyncNetworkDriver) -> None:


class AsyncIOSXRDriver(AsyncNetworkDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/cisco_iosxr/sync_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def iosxr_on_close(conn: NetworkDriver) -> None:


class IOSXRDriver(NetworkDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/cisco_nxos/async_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def nxos_on_close(conn: AsyncNetworkDriver) -> None:


class AsyncNXOSDriver(AsyncNetworkDriver, NXOSDriverBase):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/cisco_nxos/sync_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def nxos_on_close(conn: NetworkDriver) -> None:


class NXOSDriver(NetworkDriver, NXOSDriverBase):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/juniper_junos/async_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def junos_on_close(conn: AsyncNetworkDriver) -> None:


class AsyncJunosDriver(AsyncNetworkDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/core/juniper_junos/sync_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def junos_on_close(conn: NetworkDriver) -> None:


class JunosDriver(NetworkDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]] = None,
Expand Down
6 changes: 3 additions & 3 deletions scrapli/driver/generic/async_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def generic_on_open(conn: "AsyncGenericDriver") -> None:


class AsyncGenericDriver(AsyncDriver, BaseGenericDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
port: Optional[int] = None,
Expand Down Expand Up @@ -115,7 +115,7 @@ async def get_prompt(self) -> str:
return prompt

@timeout_modifier
async def _send_command(
async def _send_command( # pylint: disable=R0917
self,
command: str,
strip_prompt: bool = True,
Expand Down Expand Up @@ -484,7 +484,7 @@ async def send_interactive(
raw_response=raw_response, processed_response=processed_response, response=response
)

async def read_callback( # noqa: C901
async def read_callback( # pylint: disable=R0917
self,
callbacks: List["ReadCallback"],
initial_input: Optional[str] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/generic/base_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


class ReadCallback:
def __init__(
def __init__( # pylint: disable=R0917
self,
callback: Callable[
[Union["GenericDriver", "AsyncGenericDriver"], str],
Expand Down
8 changes: 4 additions & 4 deletions scrapli/driver/generic/sync_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def generic_on_open(conn: "GenericDriver") -> None:


class GenericDriver(Driver, BaseGenericDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
port: Optional[int] = None,
Expand Down Expand Up @@ -116,7 +116,7 @@ def get_prompt(self) -> str:
return prompt

@timeout_modifier
def _send_command(
def _send_command( # pylint: disable=R0917
self,
command: str,
strip_prompt: bool = True,
Expand Down Expand Up @@ -209,7 +209,7 @@ def send_command(
)
return response

def send_commands(
def send_commands( # pylint: disable=R0917
self,
commands: List[str],
*,
Expand Down Expand Up @@ -485,7 +485,7 @@ def send_interactive(
raw_response=raw_response, processed_response=processed_response, response=response
)

def read_callback(
def read_callback( # pylint: disable=R0917
self,
callbacks: List["ReadCallback"],
initial_input: Optional[str] = None,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/network/async_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class AsyncNetworkDriver(AsyncGenericDriver, BaseNetworkDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Dict[str, PrivilegeLevel],
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/network/base_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PrivilegeLevel:
"not_contains",
)

def __init__(
def __init__( # pylint: disable=R0917
self,
pattern: str,
name: str,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/driver/network/sync_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class NetworkDriver(GenericDriver, BaseNetworkDriver):
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
privilege_levels: Dict[str, PrivilegeLevel],
Expand Down
6 changes: 3 additions & 3 deletions scrapli/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from scrapli.transport import ASYNCIO_TRANSPORTS, CORE_TRANSPORTS


def _build_provided_kwargs_dict( # pylint: disable=R0914
def _build_provided_kwargs_dict( # pylint: disable=R0914,R0917
host: str,
privilege_levels: Optional[Dict[str, PrivilegeLevel]],
default_desired_privilege_level: Optional[str],
Expand Down Expand Up @@ -337,7 +337,7 @@ def _get_driver(
logger.info(msg)
return final_driver, additional_kwargs

def __new__( # pylint: disable=R0914
def __new__( # pylint: disable=R0914,R0917
cls,
platform: str,
host: str,
Expand Down Expand Up @@ -636,7 +636,7 @@ def _get_driver(
logger.info(msg)
return final_driver, additional_kwargs

def __new__( # pylint: disable=R0914
def __new__( # pylint: disable=R0914,R0917
cls,
platform: str,
host: str,
Expand Down
2 changes: 1 addition & 1 deletion scrapli/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class Response:
def __init__(
def __init__( # pylint: disable=R0917
self,
host: str,
channel_input: str,
Expand Down

0 comments on commit 1e5aa16

Please sign in to comment.