Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump ruff from 0.1.14 to 0.2.1 in /requirements/lintrunner #1273

Merged
merged 4 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion onnxscript/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def _numpy_to_onnxscript_value(
"""Converts an ORT encoding of an ONNX value into the encoding used by onnxscript."""
if isinstance(v, np.ndarray):
return tensor.Tensor(v)
if np.issctype(type(v)):
if np.issctype(type(v)): # noqa: NPY201
# Numpy scalar types that are not ndarray
# https://numpy.org/doc/stable/reference/arrays.scalars.html
return tensor.Tensor(np.array(v))
Expand Down
2 changes: 1 addition & 1 deletion requirements/lintrunner/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is auto updated by dependabot
lintrunner-adapters>=0.8.0
# RUFF, RUFF-FIX
ruff==0.1.14
ruff==0.2.1
# MYPY
mypy==1.8.0
types-PyYAML==6.0.12.11
Expand Down
Loading