Skip to content

Commit

Permalink
chore: update Ruff version (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Jan 30, 2023
1 parent a0ace38 commit 7734bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repos:
- id: flake8

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.228
rev: v0.0.237
hooks:
- id: ruff
args: ["--fix"]
Expand Down
6 changes: 3 additions & 3 deletions src/awkward/_connect/numba/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,17 +471,17 @@ def lower_complex_from_integer_or_float(context, builder, sig, args):

if isinstance(xtype, numba.types.Integer) and xtype.signed:
z_real = builder.sitofp(xval, context.get_value_type(numba.types.float64))
z_imag = z_real.type(0) # noqa: UP003
z_imag = z_real.type(0)
elif isinstance(xtype, numba.types.Integer):
z_real = builder.uitofp(xval, context.get_value_type(numba.types.float64))
z_imag = z_real.type(0) # noqa: UP003
z_imag = z_real.type(0)
elif xtype.bitwidth < 64:
z_real = builder.fpext(xval, context.get_value_type(numba.types.float64))
elif xtype.bitwidth > 64:
z_real = builder.fptrunc(xval, context.get_value_type(numba.types.float64))
else:
z_real = xval
z_imag = z_real.type(0) # noqa: UP003
z_imag = z_real.type(0)

call(
context,
Expand Down

0 comments on commit 7734bde

Please sign in to comment.