-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96ae96f
commit 1f1cfcb
Showing
28 changed files
with
708 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,69 @@ | ||
lint: | ||
python -m isort -rc -w 100 -y . | ||
python -m isort -rc -y . | ||
python -m black . | ||
python -m pylama . | ||
python -m pydocstyle . | ||
find nssh -type f \( -iname "*.py" ! -iname "ptyprocess.py" \) | xargs darglint | ||
|
||
cov: | ||
python -m pytest \ | ||
--cov=nssh \ | ||
--cov-report html \ | ||
--cov-report term \ | ||
tests/ | ||
|
||
cov_unit: | ||
python -m pytest \ | ||
--cov=nssh \ | ||
--cov-report html \ | ||
--cov-report term \ | ||
tests/unit/ | ||
tests/unit/ | ||
|
||
cov_functional: | ||
python -m pytest \ | ||
--cov=nssh \ | ||
--cov-report html \ | ||
--cov-report term \ | ||
tests/functional/ | ||
|
||
test: | ||
python -m pytest tests/ | ||
|
||
test_unit: | ||
python -m pytest tests/unit/ | ||
|
||
test_functional: | ||
python -m pytest tests/functional/ | ||
|
||
test_iosxe: | ||
python -m pytest -v \ | ||
tests/unit \ | ||
tests/functional/cisco_iosxe | ||
|
||
test_nxos: | ||
python -m pytest -v \ | ||
tests/unit \ | ||
tests/functional/cisco_nxos | ||
|
||
test_iosxr: | ||
python -m pytest -v \ | ||
tests/unit \ | ||
tests/functional/cisco_iosxr | ||
|
||
test_eos: | ||
python -m pytest -v \ | ||
tests/unit \ | ||
tests/functional/arista_eos | ||
|
||
test_junos: | ||
python -m pytest -v \ | ||
tests/unit \ | ||
tests/functional/juniper_junos | ||
|
||
.PHONY: docs | ||
docs: | ||
python -m pdoc \ | ||
--html \ | ||
--output-dir docs \ | ||
nssh \ | ||
--force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""nssh.driver""" | ||
from nssh.driver.driver import NSSH | ||
from nssh.driver.network_driver import NetworkDriver | ||
|
||
__all__ = ("NSSH",) | ||
__all__ = ("NSSH", "NetworkDriver") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""nssh.driver.core""" | ||
from nssh.driver.core.cisco_iosxe.driver import IOSXEDriver | ||
|
||
__all__ = ("IOSXEDriver",) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.