Skip to content

Commit

Permalink
Update tooling (ktbyers#2831)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers authored Jun 27, 2022
1 parent b34f4a9 commit 8117075
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions netmiko/snmp_autodetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ def autodetect(self) -> Optional[str]:
self._response_cache[oid] = snmp_response

# See if we had a match
assert isinstance(snmp_response, str)
if re.search(regex, snmp_response):
assert isinstance(device_type, str)
return device_type
Expand Down
2 changes: 1 addition & 1 deletion netmiko/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def get_template_dir(_skip_ntc_package: bool = False) -> str:
else:
# Try 'pip installed' ntc-templates
try:
with pkg_resources.path( # type: ignore
with pkg_resources.path(
package="ntc_templates", resource="parse.py"
) as posix_path:
# Example: /opt/venv/netmiko/lib/python3.8/site-packages/ntc_templates/templates
Expand Down
14 changes: 7 additions & 7 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
black==21.6b0
mypy==0.902
black==22.3.0
mypy==0.961
mypy-extensions==0.4.3
PyYAML==5.4
pytest==6.2.5
pylama==7.7.1
twine==1.13.0
PyYAML==5.4.1
pytest==7.1.2
pylama==8.3.8
twine==1.15.0
pysnmp==4.4.12
# Black/click issue (can go away when black is upgraded to >= 22.3.0)
click==8.0.0
# click==8.0.0
types-paramiko
types-PyYAML
-r requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions requirements-genie.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pyats==22.2
genie==22.2
pyats==22.5
genie==22.5
2 changes: 1 addition & 1 deletion requirements-ttp.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ttp>=0.4.0
ttp>=0.9.0

0 comments on commit 8117075

Please sign in to comment.