Skip to content

Commit

Permalink
Update docs depedencies, mypy, and gh-actions (checkout and setup-pyt…
Browse files Browse the repository at this point in the history
…hon) (napalm-automation#2052)

* Update to newer version of mypy
* Updating GH actions checkout and setup-python
* Upgrading markupsafe
* Upgrade Jinja2, MarkupSafe, Ansible
* Upgrade Sphinx to 7.2.6
  • Loading branch information
ktbyers authored Mar 26, 2024
1 parent e765bac commit f0779ec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -50,14 +50,14 @@ jobs:

strategy:
matrix:
python-version: [3.8]
python-version: [3.11]

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
11 changes: 5 additions & 6 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
urllib3==2.2.1 # https://github.com/readthedocs/readthedocs.org/issues/10290
sphinx==1.8.6
sphinx-rtd-theme==1.2.0
sphinxcontrib-napoleon==0.7
sphinx==7.2.6
sphinx-rtd-theme==2.0.0
invoke==2.2.0
jinja2==2.11.3
MarkupSafe==2.0.1
jinja2==3.1.3
MarkupSafe==2.1.5
pytest==7.2.2
ansible==4.10.0
ansible==6.7.0
2 changes: 1 addition & 1 deletion napalm/base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(
username: str,
password: str,
timeout: int = 60,
optional_args: Dict = None,
optional_args: Optional[Dict] = None,
) -> None:
"""
This is the base class you have to inherit from when writing your own Network Driver to
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pytest-json-report==1.5.0
pyflakes==3.2.0
pylama==8.4.1
mock==5.1.0
mypy==0.982
mypy==1.9.0
types-PyYAML==6.0.12.20240311
types-requests==2.31.0.20240311
types-six==1.16.21.20240311
Expand Down

0 comments on commit f0779ec

Please sign in to comment.