Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
linting and minimum nautobot version
Browse files Browse the repository at this point in the history
  • Loading branch information
whitej6 committed Jun 14, 2023
1 parent 938b909 commit 1db00a5
Show file tree
Hide file tree
Showing 7 changed files with 1,938 additions and 1,933 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9"]
nautobot-version: ["1.2.0"]
python-version: ["3.8", "3.9", "3.10"]
nautobot-version: ["1.5.9"]
runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_CHATOPS_ARISTA_CLOUDVISION_PYTHON_VER: "${{ matrix.python-version }}"
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

### Changed

- Dropping support for python 3.7
- Dropping support for Python 3.7
- Dropping <1.5.9 support of Nautobot
- Update dependencies to close vulnerabilty

## v1.2.0 - 2021-08-31
Expand Down
4 changes: 3 additions & 1 deletion nautobot_chatops_arista_cloudvision/cvpgrpcutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def connect_cv(settings):
# Otherwise, the server is expected to have a valid certificate signed by a well-known CA.
else:
channel_creds = grpc.ssl_channel_credentials()
response = requests.post(f"https://{cvp_host}/cvpservice/login/authenticate.do", auth=(username, password))
response = requests.post(
f"https://{cvp_host}/cvpservice/login/authenticate.do", auth=(username, password)
) # nosec
call_creds = grpc.access_token_call_credentials(response.json()["sessionId"])
# Set up credentials for CVaaS using supplied token.
else:
Expand Down
2 changes: 1 addition & 1 deletion nautobot_chatops_arista_cloudvision/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def get_token_crt():
)
else:
request = requests.post(
f"https://{CVP_HOST}/cvpservice/login/authenticate.do", auth=(CVP_USERNAME, CVP_PASSWORD)
f"https://{CVP_HOST}/cvpservice/login/authenticate.do", auth=(CVP_USERNAME, CVP_PASSWORD) # nosec
)

with open("token.txt", "w") as tokenfile: # pylint: disable=unspecified-encoding
Expand Down
3,854 changes: 1,928 additions & 1,926 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ packages = [

[tool.poetry.dependencies]
# Used for local development
nautobot = { version = "*", optional = true }
nautobot = "^1.5.9"
python = "^3.8"
protobuf = "^3.17"
cvprac = "^1.0.6"
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def is_truthy(arg):
namespace.configure(
{
"nautobot_chatops_arista_cloudvision": {
"nautobot_ver": "1.2.0",
"nautobot_ver": "1.5.9",
"project_name": "nautobot_chatops_arista_cloudvision",
"python_ver": "3.8",
"local": False,
Expand Down

0 comments on commit 1db00a5

Please sign in to comment.