Skip to content

Commit d0e21f1

Browse files
committed
Update pre-commit versions
1 parent b8c72fd commit d0e21f1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
# See https://pre-commit.com/hooks.html for more hooks
55
repos:
66
- repo: https://github.com/PyCQA/bandit
7-
rev: '1.7.4'
7+
rev: '1.7.8'
88
hooks:
99
- id: bandit
1010
pass_filenames: false
1111
args: ["-r", "numba_dpex", "-lll"]
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v4.3.0
13+
rev: v4.5.0
1414
hooks:
1515
- id: end-of-file-fixer
1616
- id: trailing-whitespace
1717
- repo: https://github.com/psf/black
18-
rev: 24.1.1
18+
rev: 24.3.0
1919
hooks:
2020
- id: black
2121
exclude: "numba_dpex/_version.py"
@@ -25,7 +25,7 @@ repos:
2525
- id: blacken-docs
2626
additional_dependencies: [black==22.10]
2727
- repo: https://github.com/pycqa/isort
28-
rev: 5.12.0
28+
rev: 5.13.2
2929
hooks:
3030
- id: isort
3131
name: isort (python)
@@ -34,16 +34,16 @@ repos:
3434
name: isort (cython)
3535
types: [cython]
3636
- repo: https://github.com/pycqa/flake8
37-
rev: 3.9.2
37+
rev: 7.0.0
3838
hooks:
3939
- id: flake8
4040
additional_dependencies: [flake8-eradicate]
4141
- repo: https://github.com/koalaman/shellcheck-precommit
42-
rev: v0.8.0
42+
rev: v0.10.0
4343
hooks:
4444
- id: shellcheck
4545
- repo: https://github.com/pre-commit/mirrors-clang-format
46-
rev: v14.0.0
46+
rev: v18.1.2
4747
hooks:
4848
- id: clang-format
4949
args: ["-i"]

numba_dpex/tests/kernel_tests/test_async_kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def test_async_add():
6363
c,
6464
)
6565

66-
assert type(host_ref) == dpctl.SyclEvent
67-
assert type(event_ref) == dpctl.SyclEvent
66+
assert isinstance(host_ref, dpctl.SyclEvent)
67+
assert isinstance(event_ref, dpctl.SyclEvent)
6868
assert host_ref is not None
6969
assert event_ref is not None
7070

0 commit comments

Comments
 (0)