Skip to content

Commit

Permalink
deps(workflows): bump actions/setup-python from 4 to 5 (#111)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Xuehai Pan <[email protected]>
  • Loading branch information
dependabot[bot] and XuehaiPan authored Dec 11, 2023
1 parent 8c8bc18 commit b50b837
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ jobs:

- name: Set up Python
id: py
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.7 - 3.12"
update-environment: true

- name: Set up Python 3.7
id: py37
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.7"
update-environment: false
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
if: startsWith(github.ref, 'refs/tags/')
with:
python-version: "3.7 - 3.12"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:

- name: Set up Python
id: py
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.7 - 3.12"
update-environment: true

- name: Set up Python 3.7
id: py37
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.7"
update-environment: false
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ repos:
- id: debug-statements
- id: double-quote-string-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.1.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.0
hooks:
- id: isort
- repo: https://github.com/psf/black
Expand Down
4 changes: 2 additions & 2 deletions nvitop/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
from termcolor import colored as _colored
except ImportError:

def _colored( # pylint: disable=unused-argument,too-many-arguments
def _colored( # type: ignore[misc] # pylint: disable=unused-argument,too-many-arguments
text: str,
color: str | None = None,
on_color: str | None = None,
Expand Down Expand Up @@ -119,7 +119,7 @@ def colored(
>>> colored('Hello, World!', 'green')
"""
if COLOR:
return _colored(text, color=color, on_color=on_color, attrs=attrs)
return _colored(text, color=color, on_color=on_color, attrs=attrs) # type: ignore[arg-type]
return text


Expand Down

0 comments on commit b50b837

Please sign in to comment.