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

Chore/pins #323

Merged
merged 2 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/generate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Generate the code reference pages and navigation."""

from pathlib import Path

import mkdocs_gen_files
Expand Down
1 change: 1 addition & 0 deletions examples/async_usage/async_iosxe_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.async_usage.async_iosxe_driver"""

import asyncio

from scrapli.driver.core import AsyncIOSXEDriver
Expand Down
1 change: 1 addition & 0 deletions examples/async_usage/async_multiple_connections.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.async_usage.async_multiple_connections"""

import asyncio

from scrapli.driver.core import AsyncIOSXEDriver, AsyncNXOSDriver
Expand Down
1 change: 1 addition & 0 deletions examples/banners_macros_etc/iosxe_banners_macros_etc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.banners_macros_etc.iosxe_banners_macros_etc"""

from scrapli.driver.core import IOSXEDriver

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions examples/basic_usage/factory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.basic_usage.factory"""

from scrapli import Scrapli

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions examples/basic_usage/generic_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.basic_usage.generic_driver"""

from scrapli.driver import GenericDriver

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions examples/basic_usage/iosxe_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.basic_usage.iosxe_driver"""

from scrapli.driver.core import IOSXEDriver

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions examples/basic_usage/scrapli_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.basic_usage.scrapli_driver"""

from scrapli import Driver

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions examples/commandeer/commandeer_generic_connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.commandeer.commandeer_generic_connection"""

from scrapli import Scrapli
from scrapli.driver.generic import GenericDriver

Expand Down
1 change: 1 addition & 0 deletions examples/configuration_modes/eos_configure_session.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.configuration_modes.eos_configure_session"""

from scrapli.driver.core import EOSDriver

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions examples/configuration_modes/iosxr_configure_exclusive.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.configuration_modes.iosxr_configure_exclusive"""

from scrapli.driver.core import IOSXRDriver

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions examples/logging/basic_logging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.logging.basic_logging"""

import logging

from scrapli.driver.core import IOSXEDriver
Expand Down
1 change: 1 addition & 0 deletions examples/logging/opinionated_logging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.logging.opinionated_logging"""

from scrapli import Scrapli
from scrapli.logging import enable_basic_logging

Expand Down
1 change: 1 addition & 0 deletions examples/non_core_device/wlc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.non_core_device.wlc"""

import logging
import time

Expand Down
1 change: 1 addition & 0 deletions examples/read_callback/async_read_callback.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.read_callback.async_read_callback"""

import asyncio

from scrapli.driver.core import AsyncIOSXEDriver
Expand Down
1 change: 1 addition & 0 deletions examples/read_callback/sync_read_callback.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.read_callback.sync_read_callback"""

from scrapli.driver.core import IOSXEDriver
from scrapli.driver.generic.base_driver import ReadCallback
from scrapli.driver.generic.sync_driver import GenericDriver
Expand Down
1 change: 1 addition & 0 deletions examples/ssh_config_files/ssh_config_file.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.ssh_config_files.ssh_config_file"""

from scrapli.driver.core import IOSXEDriver

# setting `ssh_config_file` to True makes scrapli check in ~/.ssh/ and /etc/ssh/ for a file named
Expand Down
1 change: 1 addition & 0 deletions examples/ssh_keys/ssh_keys.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.ssh_keys.ssh_keys"""

from pathlib import Path

import scrapli
Expand Down
1 change: 1 addition & 0 deletions examples/ssh_keys/ssh_keys__with_pw.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.ssh_keys.ssh_keys"""

from pathlib import Path

import scrapli
Expand Down
1 change: 1 addition & 0 deletions examples/structured_data/structured_data_genie.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.structured_data.structured_data_genie"""

from scrapli.driver.core import IOSXEDriver

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions examples/structured_data/structured_data_textfsm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.structured_data.structured_data_textfsm"""

from scrapli.driver.core import IOSXEDriver

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions examples/test_examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.test_examples"""

import pytest

from .async_usage import async_iosxe_driver
Expand Down
1 change: 1 addition & 0 deletions examples/transport_options/system_ssh_args.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""examples.transport_options.system_ssh_args"""

from scrapli.driver.core import IOSXEDriver

MY_DEVICE = {
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.noxfile"""

import re
import sys
from pathlib import Path
Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
black>=23.3.0,<24.0.0
black>=23.3.0,<25.0.0
darglint>=1.8.1,<2.0.0
isort>=5.10.1,<6.0.0
mypy>=1.4.1,<2.0.0
nox==2023.4.22
nox==2024.3.2
pycodestyle>=2.8.0,<3.0.0
pydocstyle>=6.1.1,<7.0.0
pyfakefs>=5.0.0,<6.0.0
pyfakefs>=5.0.0,<5.4.0
pylama>=8.4.0,<9.0.0
pylint>=3.0.0,<4.0.0
pytest-asyncio>=0.17.0,<1.0.0
Expand Down
1 change: 1 addition & 0 deletions scrapli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli"""

from scrapli.driver.base import AsyncDriver, Driver
from scrapli.factory import AsyncScrapli, Scrapli

Expand Down
1 change: 1 addition & 0 deletions scrapli/channel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.channel"""

from scrapli.channel.async_channel import AsyncChannel
from scrapli.channel.sync_channel import Channel

Expand Down
1 change: 1 addition & 0 deletions scrapli/channel/async_channel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.channel.async_channel"""

import asyncio
import re
import time
Expand Down
1 change: 1 addition & 0 deletions scrapli/channel/base_channel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.channel.base_channel"""

import re
from dataclasses import dataclass
from datetime import datetime
Expand Down
1 change: 1 addition & 0 deletions scrapli/channel/sync_channel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.channel.sync_channel"""

import re
import time
from contextlib import contextmanager, suppress
Expand Down
1 change: 1 addition & 0 deletions scrapli/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.decorators"""

import asyncio
import signal
import sys
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver"""

from scrapli.driver.base import AsyncDriver, Driver
from scrapli.driver.generic import AsyncGenericDriver, GenericDriver
from scrapli.driver.network import AsyncNetworkDriver, NetworkDriver
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/base/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.base"""

from scrapli.driver.base.async_driver import AsyncDriver
from scrapli.driver.base.sync_driver import Driver

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/base/async_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.base.async_driver"""

from types import TracebackType
from typing import Any, Optional, Type, TypeVar

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/base/base_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.base.base_driver""" # noqa: C0302

import importlib
from dataclasses import fields
from io import BytesIO
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/base/sync_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.base.sync_driver"""

from types import TracebackType
from typing import Any, Optional, Type, TypeVar

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core"""

from scrapli.driver.core.arista_eos import AsyncEOSDriver, EOSDriver
from scrapli.driver.core.cisco_iosxe import AsyncIOSXEDriver, IOSXEDriver
from scrapli.driver.core.cisco_iosxr import AsyncIOSXRDriver, IOSXRDriver
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/arista_eos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.arista_eos"""

from scrapli.driver.core.arista_eos.async_driver import AsyncEOSDriver
from scrapli.driver.core.arista_eos.sync_driver import EOSDriver

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/arista_eos/async_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.arista_eos.async_driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/arista_eos/base_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.arista_eos.base_driver"""

import re
from typing import Dict

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/arista_eos/sync_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.arista_eos.sync_driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_iosxe/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_iosxe"""

from scrapli.driver.core.cisco_iosxe.async_driver import AsyncIOSXEDriver
from scrapli.driver.core.cisco_iosxe.sync_driver import IOSXEDriver

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_iosxe/async_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_iosxe.async_driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_iosxe/base_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_iosxe.base_driver"""

from scrapli.driver.network.base_driver import PrivilegeLevel

PRIVS = {
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_iosxe/sync_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_iosxe.sync_driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_iosxr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_iosxr"""

from scrapli.driver.core.cisco_iosxr.async_driver import AsyncIOSXRDriver
from scrapli.driver.core.cisco_iosxr.sync_driver import IOSXRDriver

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_iosxr/async_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_iosxr.async_driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_iosxr/base_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_iosxr.base_driver"""

from scrapli.driver.network.base_driver import PrivilegeLevel

PRIVS = {
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_iosxr/sync_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_iosxr.sync_driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_nxos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_nxos"""

from scrapli.driver.core.cisco_nxos.async_driver import AsyncNXOSDriver
from scrapli.driver.core.cisco_nxos.sync_driver import NXOSDriver

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_nxos/async_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_nxos.async_driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_nxos/base_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_nxos.base_driver"""

from typing import Dict

from scrapli.driver.network.base_driver import PrivilegeLevel
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/cisco_nxos/sync_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.cisco_nxos.sync_driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/juniper_junos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.juniper_junos"""

from scrapli.driver.core.juniper_junos.async_driver import AsyncJunosDriver
from scrapli.driver.core.juniper_junos.sync_driver import JunosDriver

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/juniper_junos/async_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.juniper_junos.async_driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/juniper_junos/base_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.juniper_junos.base_driver"""

from scrapli.driver.network.base_driver import PrivilegeLevel

PRIVS = {
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/core/juniper_junos/sync_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.core.juniper_junos.driver"""

from copy import deepcopy
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/generic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.generic"""

from scrapli.driver.generic.async_driver import AsyncGenericDriver
from scrapli.driver.generic.base_driver import ReadCallback
from scrapli.driver.generic.sync_driver import GenericDriver
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/generic/async_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.generic.async_driver"""

import asyncio
from io import BytesIO
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/generic/base_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.generic.base_driver"""

import re
from typing import (
TYPE_CHECKING,
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/generic/sync_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.generic.sync_driver"""

import time
from io import BytesIO
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/network/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.network"""

from scrapli.driver.network.async_driver import AsyncNetworkDriver
from scrapli.driver.network.sync_driver import NetworkDriver

Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/network/async_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.network.async_driver"""

from collections import defaultdict
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/network/base_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.network.base_driver"""

import re
from collections import defaultdict
from datetime import datetime
Expand Down
1 change: 1 addition & 0 deletions scrapli/driver/network/sync_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""scrapli.driver.network.sync_driver"""

from collections import defaultdict
from io import BytesIO
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
Expand Down
Loading
Loading